php-src/Zend/tests/bug40815.phpt
2018-10-14 19:45:12 +02:00

19 lines
315 B
PHP

--TEST--
Bug #40815 (using strings like "class::func" and static methods in set_exception_handler() might result in crash).
--FILE--
<?php
class ehandle{
static public function exh ($ex) {
echo 'foo';
}
}
set_exception_handler("ehandle::exh");
throw new Exception ("Whiii");
echo "Done\n";
?>
--EXPECT--
foo