summaryrefslogtreecommitdiff
path: root/Zend/tests/call_user_func_007.phpt
blob: f73f14b1ff2450782c7d2be40c5dc27d2d1ed5c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--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--
Notice: Undefined offset: 0 in %s on line %d

Warning: Parameter 1 to foo() expected to be a reference, value given in %s on line %d
array(0) {
}