mirror of
https://github.com/php/php-src.git
synced 2024-12-18 06:21:41 +08:00
14 lines
392 B
Plaintext
14 lines
392 B
Plaintext
|
--TEST--
|
||
|
Argument name for Closure::__invoke via call_user_func reference warning
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
$test = function(&$arg) {};
|
||
|
call_user_func([$test, '__invoke'], null);
|
||
|
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
Warning: Closure::__invoke(): Argument #1 ($arg) must be passed by reference, value given in %s on line %d
|
||
|
|
||
|
Warning: {closure}(): Argument #1 ($arg) must be passed by reference, value given in %s on line %d
|