#27666 [NEW]: Exception behavior seems to be broken

From: Date: Wed, 24 Mar 2004 04:46:32 +0000
Subject: #27666 [NEW]: Exception behavior seems to be broken
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-56737@lists.php.net to get a copy of this message
From: andrey at itime dot ru Operating system: Win2K PHP version: 5.0.0RC1 PHP Bug Type: Zend Engine 2 problem Bug description: Exception behavior seems to be broken Description: ------------ Two files. 1.php5: <? print 'x'; require_once('2.php5'); print 'y'; die('z'); ?> 2.php5: <? print '1'; throw new Exception('Help me!'); print '2'; ?> After run 1.php5, I expect to see: "x1" printed and uncaughted exception report. But I see "x1yz" printed and no exception report. It seems that php just continue execution after returning from require_once(). Even if I surround require_once() by try {} catch block, it still print "x1yz" and die. Reproduce code: --------------- Expected result: ---------------- Actual result: -------------- -- Edit bug report at http://bugs.php.net/?id=27666&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27666&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27666&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27666&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27666&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27666&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27666&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27666&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27666&r=support Expected behavior: http://bugs.php.net/fix.php?id=27666&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27666&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27666&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27666&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27666&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27666&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27666&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27666&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27666&r=float

« previous php.bugs (#56737) next »