1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00
Files
archived-php-src/ext/reflection/tests/bug74949.phpt
2020-02-03 22:52:20 +01:00

25 lines
388 B
PHP

--TEST--
Bug #74949 (null pointer dereference in _function_string)
--FILE--
<?php
$f = function () {};
$r = new ReflectionMethod($f, "__invoke");
unset($f);
echo $r, "\n";
try {
echo $r->getPrototype();
} catch (Exception $e) {
echo $e->getMessage(), "\n";
}
?>
--EXPECT--
Method [ <internal> public method __invoke ] {
}
Method Closure::__invoke does not have a prototype