dis-bench / src /php /php-src /Zend /tests /dynamic_call /bug69167.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
234 Bytes
--TEST--
Bug #69167 (call_user_func does not support references anymore)
--FILE--
<?php
function l($m) {
echo $m . "\n";
}
$cb = 'l';
call_user_func($cb, 'hi');
$cb2 = &$cb;
call_user_func($cb2, 'hi2');
?>
--EXPECT--
hi
hi2