summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/bug70674.phpt
blob: 82cfc53f1ee4c00b2852511fc48920494b8fb874 (plain)
1
2
3
4
5
6
7
8
--TEST--
Bug #70674 (ReflectionFunction::getClosure() leaks memory when used for internal functions)
--FILE--
<?php
var_dump(((new ReflectionFunction("strlen"))->getClosure())("hello"));
?>
--EXPECT--
int(5)