mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +08:00
c48b745f00
This implements the last remaining part of the https://wiki.php.net/rfc/engine_warnings RFC. Closes GH-5927.
21 lines
416 B
PHP
21 lines
416 B
PHP
--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--
|
|
Warning: Undefined array key 0 in %s on line %d
|
|
|
|
Warning: Trying to access array offset on value of type null in %s on line %d
|
|
|
|
Warning: foo(): Argument #1 ($ref) must be passed by reference, value given in %s on line %d
|
|
array(0) {
|
|
}
|