File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
Zend /
tests /
bug34062.phpt
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue Feb 21 23:47:52 2012 UTC (13 years, 1 month ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
v5_3_10,
HEAD
php
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>