1
0
mirror of https://github.com/php/php-src.git synced 2026-04-18 21:41:22 +02:00
Files
archived-php-src/Zend/tests/call_user_func_009.phpt
Máté Kocsis 960318ed95 Change argument error message format
Closes GH-5211
2020-02-26 15:00:08 +01:00

18 lines
415 B
PHP

--TEST--
call_user_func() behavior when passing literal to reference parameter
--FILE--
<?php
namespace Foo;
var_dump(call_user_func('sort', []));
var_dump(\call_user_func('sort', []));
?>
--EXPECTF--
Warning: sort(): Argument #1 ($arg) must be passed by reference, value given in %s on line %d
bool(true)
Warning: sort(): Argument #1 ($arg) must be passed by reference, value given in %s on line %d
bool(true)