php-src/ext/reflection/tests/bug70674.phpt
2015-10-14 10:26:02 +08:00

9 lines
208 B
PHP

--TEST--
Bug #70674 (ReflectionFunction::getClosure() leaks memory when used for internal functions)
--FILE--
<?php
var_dump(((new ReflectionFunction("strlen"))->getClosure())("hello"));
?>
--EXPECT--
int(5)