cvs: ZendEngine2(PHP_5_0) /tests bug34062.phpt

From: Date: Thu, 20 Oct 2005 07:05:10 +0000
Subject: cvs: ZendEngine2(PHP_5_0) /tests bug34062.phpt
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-4258@lists.php.net to get a copy of this message
dmitry Thu Oct 20 03:05:10 2005 EDT Added files: (Branch: PHP_5_0) /ZendEngine2/tests bug34062.phpt Log: Added forgotten test http://cvs.php.net/co.php/ZendEngine2/tests/bug34062.phpt?r=1.1&p=1 Index: ZendEngine2/tests/bug34062.phpt +++ ZendEngine2/tests/bug34062.phpt --TEST-- Bug #34062 (Crash in catch block when many arguments are used) --FILE-- <?php function f1() { throw new Exception; } function f2() { echo "here\n"; } try { // Currently it's the minimum required number of zeros // If you remove one, it won't crash max(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, f1()); } catch (Exception $e) { echo "(((\n"; f2(0, 0, 0); // Won't crash if less than 3 zeros here echo ")))\n"; } ?> --EXPECT-- ((( here )))

« previous php.zend-engine.cvs (#4258) next »