/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
Zend
/
tests
/
File Upload :
llllll
Current File: //usr/local/lsws/phpbuild/php-8.0.7/Zend/tests/bug29368.phpt
--TEST-- Bug #29368 (The destructor is called when an exception is thrown from the constructor) --FILE-- <?php class Foo { function __construct() { echo __METHOD__ . "\n"; throw new Exception; } function __destruct() { echo __METHOD__ . "\n"; } } try { $bar = new Foo; } catch(Exception $exc) { echo "Caught exception!\n"; } unset($bar); ?> --EXPECT-- Foo::__construct Caught exception!
Copyright ©2k19 -
Hexid
|
Tex7ure