Home
last modified time | relevance | path

Searched refs:call_user_func (Results 1 – 25 of 98) sorted by relevance

1234

/php-src/ext/zend_test/tests/
H A Dobserver_call_user_func_03.phpt2 Observer: call_user_func() from namespace
25 call_user_func('Test\\MyClass::myMethod');
26 call_user_func('Test\\my_function');
32 <!-- init call_user_func() -->
33 <call_user_func>
38 </call_user_func>
39 <call_user_func>
44 </call_user_func>
H A Dobserver_call_user_func_01.phpt2 Observer: call_user_func() from root namespace
26 call_user_func('Test\\MyClass::myMethod');
27 call_user_func('Test\\my_function');
/php-src/Zend/tests/lsb/
H A Dlsb_021.phpt14 call_user_func("parent::test");
15 call_user_func(array("parent", "test"));
17 call_user_func("self::test");
18 call_user_func(array("self", "test"));
22 call_user_func("A::test");
23 call_user_func(array("A", "test"));
25 call_user_func("B::test");
26 call_user_func(array("B", "test"));
29 call_user_func(self::class . "::test");
30 call_user_func(array(self::class, "test"));
/php-src/ext/standard/tests/general_functions/
H A Dcallbacks_002.phpt2 call_user_func(): Wrong parameters
7 call_user_func(array('Foo', 'bar'));
12 call_user_func(array(NULL, 'bar'));
17 call_user_func(array('stdclass', NULL));
24 call_user_func(): Argument #1 ($callback) must be a valid callback, class "Foo" not found
25 call_user_func(): Argument #1 ($callback) must be a valid callback, first array member is not a val…
26 call_user_func(): Argument #1 ($callback) must be a valid callback, second array member is not a va…
H A Dbug36011.phpt2 Bug #36011 (Strict errormsg wrong for call_user_func() and the likes)
20 call_user_func(array('TestClass', 'test'));
25 call_user_func(array('TestClass', 'test'));
/php-src/Zend/tests/
H A Dcall_user_func_002.phpt2 Testing call_user_func() with autoload and passing invalid params
11 call_user_func(array('foo', 'bar'));
16 call_user_func(array('', 'bar'));
21 call_user_func(array($foo, 'bar'));
26 call_user_func(array($foo, ''));
34 call_user_func(): Argument #1 ($callback) must be a valid callback, class "foo" not found
35 call_user_func(): Argument #1 ($callback) must be a valid callback, class "" not found
38 call_user_func(): Argument #1 ($callback) must be a valid callback, first array member is not a val…
41 call_user_func(): Argument #1 ($callback) must be a valid callback, first array member is not a val…
H A Dbug45186_2.phpt14 call_user_func(array('BAR', 'xyz'));
15 call_user_func('BAR::www');
16 call_user_func(array('self', 'y'));
17 call_user_func('self::y');
28 call_user_func(array('BAR','x'));
30 call_user_func('BAR::www');
35 call_user_func('self::y');
59 call_user_func(): Argument #1 ($callback) must be a valid callback, class bar does not have a metho…
60 call_user_func(): Argument #1 ($callback) must be a valid callback, cannot access "self" when no cl…
H A Dbug45186.phpt18 call_user_func(array('BAR', 'xyz'));
19 call_user_func('BAR::www');
20 call_user_func(array('self', 'y'));
21 call_user_func('self::y');
32 call_user_func(array('BAR','x'));
33 call_user_func('BAR::www');
35 call_user_func('self::y');
61 call_user_func(): Argument #1 ($callback) must be a valid callback, cannot access "self" when no cl…
H A Dcall_user_func_001.phpt2 Testing call_user_func inside namespace
22 call_user_func(__NAMESPACE__ .'\foobar', 'foobar');
26 call_user_func(array(new $class, 'priv'), 'foobar');
31 call_user_func(array(new $class, 'prot'), 'foobar');
40 call_user_func(): Argument #1 ($callback) must be a valid callback, cannot access private method te…
41 call_user_func(): Argument #1 ($callback) must be a valid callback, cannot access protected method …
H A Dbug66719.phpt2 Bug #66719: Weird behaviour when using get_called_class() with call_user_func()
25 call_user_func(array(A::class, 'who'));
26 call_user_func(array(B::class, 'parent::who'));
31 call_user_func(array(A::class, 'who'));
32 call_user_func(array(B::class, 'parent::who'));
H A Dbug69167.phpt2 Bug #69167 (call_user_func does not support references anymore)
10 call_user_func($cb, 'hi');
13 call_user_func($cb2, 'hi2');
H A Dfr47160.phpt42 var_dump(call_user_func($f, 'again'));
51 var_dump(call_user_func($f, 'there'));
61 var_dump(call_user_func($f, 'devs'));
67 call_user_func($f);
73 call_user_func($f);
80 call_user_func($f);
86 call_user_func($f);
92 var_dump(call_user_func($f, 'you'));
H A Dmethods-on-non-objects-call-user-func.phpt2 call_user_func() in combination with "Call to a member function method() on a non-object"
7 var_dump(call_user_func([$comparator, 'compare'], 1, 2));
13 call_user_func(): Argument #1 ($callback) must be a valid callback, first array member is not a val…
H A Dcall_user_func_009.phpt2 call_user_func() behavior when passing literal to reference parameter
8 var_dump(call_user_func('sort', []));
9 var_dump(\call_user_func('sort', []));
H A Dbug73338.phpt6 try { call_user_func(new class { function __destruct () { throw new Error; } }); } catch (Error $e)…
10 try { var_dump(new stdClass, call_user_func("fail")); } catch (Error $e) {}
12 try { (function() { call_user_func("fail"); })(); } catch (Error $e) {}
H A Dcall_user_func_006.phpt2 call_user_func() should error on reference arguments
14 \call_user_func('Foo\bar', $x);
19 call_user_func('Foo\bar', $y);
H A Dcall_user_func_003.phpt2 Testing call_user_func() with closures
18 var_dump(call_user_func(array($foo, '__invoke'))->__invoke());
19 var_dump(call_user_func(function() use (&$foo) { return $foo; }, '__invoke'));
H A Dbug78898.phpt2 Bug #78898: call_user_func(['parent', ...]) fails while other succeed
24 call_user_func('parent::_x');
25 call_user_func(['parent', '_x']);
H A Dcall_user_func_strict_arginfo_check.phpt2 Arginfo / zpp consistency check for call_user_func() in strict context
10 var_dump(call_user_func('strlen', false));
H A Dbug45180.phpt8 call_user_func(array('FOO', 'ABC'));
9 call_user_func(array($this, 'ABC'));
12 call_user_func('FOO::ABC');
/php-src/Zend/tests/named_params/
H A Dcall_user_func.phpt2 call_user_func() and friends with named parameters
31 call_user_func($test, 'A', c: 'C');
32 call_user_func($test, c: 'C', a: 'A');
33 call_user_func($test, c: 'C');
34 call_user_func($test_variadic, 'A', c: 'C');
35 call_user_func($test_ref, ref: null);
36 var_dump(call_user_func('call_user_func', $test, c: 'D'));
38 call_user_func($test_required, b: 'B');
43 var_dump(call_user_func('array_slice', [1, 2, 3, 4, 5], length: 2));
48 var_dump(call_user_func('array_slice', [1, 2, 3, 4, 'x' => 5], 3, preserve_keys: true));
/php-src/tests/classes/
H A Dtype_hinting_004.phpt15 call_user_func('f1', 1);
20 call_user_func('f1', new A);
25 call_user_func('f2', 1);
30 call_user_func('f2');
35 call_user_func('f2', new A);
40 call_user_func('f2', null);
64 call_user_func(array('C', 'f1'), 1);
74 call_user_func(array('C', 'f2'), 1);
79 call_user_func(array('C', 'f2'));
114 call_user_func(array($d, 'f1'), 1);
[all …]
/php-src/tests/basic/
H A Dtimeout_variation_4.phpt2 Timeout within call_user_func
13 call_user_func('sleep', 1);
14 call_user_func('sleep', 1);
/php-src/Zend/tests/access_modifiers/
H A Daccess_modifiers_012.phpt14 call_user_func(array($c, 'none'));
15 call_user_func(array($c, 'prot'));
16 call_user_func(array($c, 'priv'));
/php-src/ext/opcache/tests/
H A Dwrong_inlining_004.phpt2 Inlining through call_user_func()
17 var_dump(call_user_func('get_const', $x));

Completed in 31 milliseconds

1234