/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
tests
/
lang
/
File Upload :
llllll
Current File: //usr/local/lsws/phpbuild/php-8.0.7/tests/lang/bug26866.phpt
--TEST-- Bug #26866 (segfault when exception raised in __get) --FILE-- <?php class bar { function get_name() { return 'bar'; } } class foo { function __get($sName) { throw new Exception('Exception!'); return new bar(); } } $foo = new foo(); try { echo $foo->bar->get_name(); } catch (Exception $E) { echo "Exception raised!\n"; } ?> --EXPECT-- Exception raised!
Copyright ©2k19 -
Hexid
|
Tex7ure