summaryrefslogtreecommitdiff
path: root/Zend/tests/call_user_func_009.phpt
blob: 7224dc06fac3e7d1efbb2b2c7fe623f961e061b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--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 ($array) must be passed by reference, value given in %s on line %d
bool(true)

Warning: sort(): Argument #1 ($array) must be passed by reference, value given in %s on line %d
bool(true)