xref: /PHP-7.2/ext/reflection/tests/bug70674.phpt (revision 534856c9)
1--TEST--
2Bug #70674 (ReflectionFunction::getClosure() leaks memory when used for internal functions)
3--FILE--
4<?php
5var_dump(((new ReflectionFunction("strlen"))->getClosure())("hello"));
6?>
7--EXPECT--
8int(5)
9