/PHP-8.0/Zend/tests/ |
H A D | lsb_021.phpt | 14 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"));
|
H A D | bug45186_2.phpt | 14 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'); 55 call_user_func(): Argument #1 ($callback) must be a valid callback, class bar does not have a metho… 56 call_user_func(): Argument #1 ($callback) must be a valid callback, cannot access "self" when no cl…
|
H A D | call_user_func_002.phpt | 2 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 D | bug45186.phpt | 18 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'); 57 call_user_func(): Argument #1 ($callback) must be a valid callback, cannot access "self" when no cl…
|
H A D | call_user_func_001.phpt | 2 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 D | bug66719.phpt | 2 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 D | bug69167.phpt | 2 Bug #69167 (call_user_func does not support references anymore) 10 call_user_func($cb, 'hi'); 13 call_user_func($cb2, 'hi2');
|
H A D | call_user_func_003.phpt | 2 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 D | fr47160.phpt | 42 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 D | bug78898.phpt | 2 Bug #78898: call_user_func(['parent', ...]) fails while other succeed 24 call_user_func('parent::_x'); 25 call_user_func(['parent', '_x']);
|
H A D | methods-on-non-objects-call-user-func.phpt | 2 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 D | call_user_func_009.phpt | 2 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 D | access_modifiers_012.phpt | 14 call_user_func(array($c, 'none')); 15 call_user_func(array($c, 'prot')); 16 call_user_func(array($c, 'priv'));
|
H A D | bug73338.phpt | 6 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 D | call_user_func_006.phpt | 2 call_user_func() should error on reference arguments 14 \call_user_func('Foo\bar', $x); 19 call_user_func('Foo\bar', $y);
|
H A D | ns_032.phpt | 15 call_user_func(__NAMESPACE__."\\foo"); 16 call_user_func(__NAMESPACE__."\\test::foo");
|
H A D | bug45180.phpt | 8 call_user_func(array('FOO', 'ABC')); 9 call_user_func(array($this, 'ABC')); 12 call_user_func('FOO::ABC');
|
/PHP-8.0/ext/standard/tests/general_functions/ |
H A D | callbacks_002.phpt | 2 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 D | bug36011.phpt | 2 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-8.0/tests/classes/ |
H A D | type_hinting_004.phpt | 15 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-8.0/Zend/tests/named_params/ |
H A D | call_user_func.phpt | 2 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-8.0/tests/basic/ |
H A D | timeout_variation_4.phpt | 2 Timeout within call_user_func 13 call_user_func('sleep', 1); 14 call_user_func('sleep', 1);
|
/PHP-8.0/ext/zend_test/tests/ |
H A D | observer_call_user_func_03.phpt | 2 Observer: call_user_func() from namespace 24 call_user_func('Test\\MyClass::myMethod'); 25 call_user_func('Test\\my_function');
|
H A D | observer_call_user_func_01.phpt | 2 Observer: call_user_func() from root namespace 25 call_user_func('Test\\MyClass::myMethod'); 26 call_user_func('Test\\my_function');
|
/PHP-8.0/ext/opcache/tests/ |
H A D | wrong_inlining_004.phpt | 2 Inlining through call_user_func() 17 var_dump(call_user_func('get_const', $x));
|