Home
last modified time | relevance | path

Searched refs:call_user_func_array (Results 1 – 25 of 55) sorted by relevance

123

/PHP-8.0/Zend/tests/named_params/
H A Dcall_user_func_array.phpt2 Behavior of call_user_func_array() with named parameters
14 call_user_func_array($test, ['A', 'B']);
15 call_user_func_array($test, [1 => 'A', 0 => 'B']);
16 call_user_func_array($test, ['A', 'c' => 'C']);
19 call_user_func_array($test, ['d' => 'D']);
24 call_user_func_array($test, ['c' => 'C', 'A']);
32 call_user_func_array($test, ['A', 'B']);
33 call_user_func_array($test, [1 => 'A', 0 => 'B']);
34 call_user_func_array($test, ['A', 'c' => 'C']);
37 call_user_func_array($test, ['d' => 'D']);
[all …]
H A Dcall_user_func_array_variadic.phpt2 call_user_func_array() with extra named parameters
6 call_user_func_array("array_multisort", $args);
/PHP-8.0/Zend/tests/
H A Dcall_user_func_array_prefer_ref.phpt2 call_user_func_array() passes value to prefer-ref arg if element wasn't a reference
7 call_user_func_array('array_multisort', [[3, 2, 1]]);
10 call_user_func_array('array_multisort', $args);
21 call_user_func_array('array_multisort', [[3, 2, 1]]);
24 call_user_func_array('array_multisort', $args);
H A Dbug48770_2.phpt2 Bug #48770 (call_user_func_array() fails to call parent from inheriting class)
23 call_user_func_array(array($this, 'parent::func2'), array($str));
24 call_user_func_array(array($this, 'parent::func3'), array($str));
27 call_user_func_array(array($this, 'parent::func22'), array($str));
33 call_user_func_array(array($this, 'parent::inexistent'), array($str));
59 call_user_func_array(): Argument #1 ($callback) must be a valid callback, cannot access private met…
60 call_user_func_array(): Argument #1 ($callback) must be a valid callback, class B does not have a m…
H A Dcall_user_func_array_invalid_type.phpt2 call_user_func_array() generating TypeError
12 call_user_func_array(array($drv, 'func'), null);
18 call_user_func_array(): Argument #2 ($args) must be of type array, null given
H A Dbug52940.phpt2 Bug #52940 (call_user_func_array still allows call-time pass-by-reference)
14 call_user_func_array("foo", array(&$a));
16 call_user_func_array("bar", array(&$a));
H A Dbug48770_3.phpt2 Bug #48770 (call_user_func_array() fails to call parent from inheriting class)
20 call_user_func_array(array($this, 'self::func2'), array($str));
21 call_user_func_array(array($this, 'self::func3'), array($str));
24 call_user_func_array(array($this, 'self::inexistent'), array($str));
50 call_user_func_array(): Argument #1 ($callback) must be a valid callback, class C does not have a m…
H A Dbug50394.phpt10 call_user_func_array( 'inc', $args );
17 call_user_func_array( array( $proxy, 'bar' ), $args );
18 call_user_func_array( array( $proxy, 'bar' ), array(&$arg) );
H A Dbug79979.phpt8 call_user_func_array("str_replace", ["a", "b", "c", new \stdClass]);
9 call_user_func_array("str_replace", ["a", "b", "c", "count" => new \stdClass]);
11 \call_user_func_array("str_replace", ["a", "b", "c", new \stdClass]);
12 \call_user_func_array("str_replace", ["a", "b", "c", "count" => new \stdClass]);
H A Dlsb_022.phpt19 call_user_func_array("parent::__callstatic", array($name, $args));
21 call_user_func_array("parent::foo", $args);
22 call_user_func_array(array("parent","foo"), $args);
H A Dbug32290.phpt2 Bug #32290 (calling call_user_func_array() ends in infinite loop within child class)
48 return call_user_func_array(array("TestA", "doSomething"), array($i));
56 return call_user_func_array(array($this, "TestA::doSomethingThis"), array($i));
64 return call_user_func_array(array("parent", "doSomethingParent"), array($i));
72 return call_user_func_array(array($this, "parent::doSomethingParentThis"), array($i));
80 return call_user_func_array(array("TestA", "doSomethingStatic"), array($i));
H A Dcall_user_func_array_array_slice_named_args.phpt2 call_user_func_array() + array_slice() + named arguments
5 call_user_func_array('func', array_slice(array: $a, 1, 2));
H A Dbug47880.phpt2 Bug #47880 (crashes in call_user_func_array())
11 call_user_func_array(array('bomb', 'go'), array(0));
H A Dunexpected_ref_bug.phpt13 $data = call_user_func_array("explode", array(new Test(), &$my_var));
15 $data = call_user_func_array("str_replace", array(&$my_var, new Test(), "foo"));
H A Dbug61273.phpt2 Bug #61273 (call_user_func_array with more than 16333 arguments leaks / crashes)
11 call_user_func_array(function(&$a) {}, $args);
H A Dbug19859.phpt2 Bug #19859 (__call() does not catch call_user_func_array() calls)
14 call_user_func_array(array($x,'fake'),array(1));
H A Dbug52939.phpt11 var_dump(call_user_func_array("array_multisort", $args));
16 var_dump(call_user_func_array("array_multisort", $args));
/PHP-8.0/ext/standard/tests/general_functions/
H A Dbug40398.phpt19 call_user_func_array(array($this, 'Base::__construct'), $args);
28 call_user_func_array(array($this, 'parent::__construct'), $args);
37 call_user_func_array('Base::__construct', $args);
46 call_user_func_array('parent::__construct', $args);
55 call_user_func_array(array('Base', '__construct'), $args);
64 call_user_func_array(array('parent', '__construct'), $args);
H A Dcall_user_func_array_variation_001.phpt2 call_user_func_array() passes by reference if the array element is referenced, regardless of functi…
16 call_user_func_array('by_val', $arg);
21 call_user_func_array('by_ref', $arg);
27 call_user_func_array('by_val', $arg);
33 call_user_func_array('by_ref', $arg);
H A Dbug31190.phpt2 Bug #31190 (exception in call_user_func_array())
18 call_user_func_array($array, array(1, 2));
/PHP-8.0/tests/classes/
H A Dbug27504.phpt2 Bug #27504 (call_user_func_array allows calling of private/protected methods)
17 call_user_func_array( array( $foo , 'bar' ) , array( '2' ) );
30 call_user_func_array(): Argument #1 ($callback) must be a valid callback, cannot access private met…
/PHP-8.0/Zend/tests/generators/
H A Dgenerator_with_arg_unpacking.phpt6 call_user_func_array(function() { yield; }, range(1, 16384));
8 $g = call_user_func_array(function() { yield; }, range(1, 16384));
/PHP-8.0/ext/zend_test/tests/
H A Dobserver_call_user_func_04.phpt2 Observer: call_user_func_array() from namespace
24 call_user_func_array('Test\\MyClass::myMethod', ['called']);
25 call_user_func_array('Test\\my_function', ['called']);
H A Dobserver_call_user_func_02.phpt2 Observer: call_user_func_array() from root namespace
25 call_user_func_array('Test\\MyClass::myMethod', ['called']);
26 call_user_func_array('Test\\my_function', ['called']);
/PHP-8.0/Zend/tests/nullsafe_operator/
H A D013.phpt26 dump_error(fn() => call_user_func_array($foo?->foo(), []));
27 dump_error(fn() => call_user_func_array('foo', $foo?->foo()));
50 string(98) "call_user_func_array(): Argument #1 ($callback) must be a valid callback, no array or s…
51 string(77) "call_user_func_array(): Argument #2 ($args) must be of type array, null given"

Completed in 42 milliseconds

123