mirror of
https://github.com/php/php-src.git
synced 2026-03-27 17:52:16 +01:00
23 lines
428 B
PHP
23 lines
428 B
PHP
--TEST--
|
|
Bug #74673 (Segfault when cast Reflection object to string with undefined constant)
|
|
--FILE--
|
|
<?php
|
|
|
|
set_error_handler(function() {
|
|
throw new Exception();
|
|
});
|
|
|
|
class A
|
|
{
|
|
public function method($test = PHP_SELF + 1)
|
|
{
|
|
}
|
|
}
|
|
|
|
$class = new ReflectionClass('A');
|
|
|
|
echo $class;
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Method ReflectionClass::__toString() must not throw an exception, caught Exception: in %sbug74673.php on line %d
|