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/bug48757.phpt
2020-02-03 22:52:20 +01:00

22 lines
373 B
PHP

--TEST--
Bug #48757 (ReflectionFunction::invoke() parameter issues)
--FILE--
<?php
function test() {
echo "Hello World\n";
}
function another_test($parameter) {
var_dump($parameter);
}
$func = new ReflectionFunction('test');
$func->invoke();
$func = new ReflectionFunction('another_test');
$func->invoke('testing');
?>
--EXPECT--
Hello World
string(7) "testing"