/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
spl
/
tests
/
File Upload :
llllll
Current File: //usr/local/lsws/phpbuild/php-8.0.7/ext/spl/tests/bug36825.phpt
--TEST-- Bug #36825 (Exceptions thrown in ArrayObject::offsetGet cause segfault) --FILE-- <?php class foo extends ArrayObject { public function offsetGet($key) { echo __METHOD__ . "($key)\n"; throw new Exception("hi"); } } $test = new foo(); try { var_dump($test['bar']); } catch (Exception $e) { echo "got exception\n"; } ?> --EXPECT-- foo::offsetGet(bar) got exception
Copyright ©2k19 -
Hexid
|
Tex7ure