summaryrefslogtreecommitdiff
path: root/Zend/tests/call_user_func_009.phpt
blob: d45380db1500a7c44e9e9ef92a3e85e487ff7469 (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: Parameter 1 to sort() expected to be a reference, value given in %s on line %d
bool(true)

Warning: Parameter 1 to sort() expected to be a reference, value given in %s on line %d
bool(true)