1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 16:22:37 +01:00
Files
archived-php-src/ext/reflection/tests/bug70674.phpt

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)