mirror of
https://github.com/php/php-src.git
synced 2024-09-29 22:06:09 +00:00
9 lines
208 B
PHP
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)
|