#27666 [Opn->Ver]: Exception behavior seems to be broken

From: Date: Wed, 07 Apr 2004 12:31:23 +0000
Subject: #27666 [Opn->Ver]: Exception behavior seems to be broken
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-57682@lists.php.net to get a copy of this message
ID: 27666 Updated by: sniper@php.net Reported By: andrey at itime dot ru -Status: Open +Status: Verified Bug Type: Zend Engine 2 problem -Operating System: Win2K +Operating System: * -PHP Version: 5.0.0RC1 +PHP Version: 5CVS-2004-04-07 Previous Comments: ------------------------------------------------------------------------ [2004-03-23 23:46:31] andrey at itime dot ru 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 this bug report at http://bugs.php.net/?id=27666&edit=1

« previous php.bugs (#57682) next »