mirror of
https://github.com/php/php-src.git
synced 2024-09-29 22:06:09 +00:00
19 lines
328 B
Plaintext
19 lines
328 B
Plaintext
|
--TEST--
|
||
|
call_user_func() should not use FUNC_ARG fetches
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
function foo(&$ref) { $ref = 24; }
|
||
|
|
||
|
$a = [];
|
||
|
call_user_func('foo', $a[0][0]);
|
||
|
var_dump($a);
|
||
|
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
Notice: Undefined offset: 0 in %s on line %d
|
||
|
|
||
|
Warning: Parameter 1 to foo() expected to be a reference, value given in %s on line %d
|
||
|
array(0) {
|
||
|
}
|