/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
reflection
/
tests
/
File Upload :
llllll
Current File: //usr/local/lsws/phpbuild/php-8.0.7/ext/reflection/tests/bug77882.phpt
--TEST-- Bug #77882: Different behavior: always calls destructor --FILE-- <?php class Test { public function __construct() { throw new Exception(); } public function __destruct() { echo "__destruct\n"; } } try { new Test(); } catch (Exception $e) { echo "Exception\n"; } try { $ref = new ReflectionClass('Test'); $obj = $ref->newInstance(); } catch (Exception $e) { echo "Exception\n"; } try { $ref = new ReflectionClass('Test'); $obj = $ref->newInstanceArgs([]); } catch (Exception $e) { echo "Exception\n"; } ?> --EXPECT-- Exception Exception Exception
Copyright ©2k19 -
Hexid
|
Tex7ure