Annotation of embedaddon/php/Zend/tests/bug34062.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #34062 (Crash in catch block when many arguments are used)
! 3: --FILE--
! 4: <?php
! 5: function f1() { throw new Exception; }
! 6: function f2() { echo "here\n"; }
! 7:
! 8: try {
! 9: // Currently it's the minimum required number of zeros
! 10: // If you remove one, it won't crash
! 11: max(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
! 12: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
! 13: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, f1());
! 14: } catch (Exception $e) {
! 15: echo "(((\n";
! 16: f2(0, 0, 0); // Won't crash if less than 3 zeros here
! 17: echo ")))\n";
! 18: }
! 19: ?>
! 20: --EXPECT--
! 21: (((
! 22: here
! 23: )))
! 24:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>