mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
18 lines
233 B
PHP
18 lines
233 B
PHP
--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
|