Home
last modified time | relevance | path

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

1234

/PHP-7.3/Zend/tests/
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"));
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'));
29 call_user_func('BAR::www');
30 call_user_func('self::y');
48 Warning: call_user_func() expects parameter 1 to be a valid callback, class 'bar' does not have a m…
50 Warning: call_user_func() expects parameter 1 to be a valid callback, cannot access self:: when no …
H A Dcall_user_func_002.phpt2 Testing call_user_func() with autoload and passing invalid params
10 call_user_func(array('foo', 'bar'));
11 call_user_func(array('', 'bar'));
12 call_user_func(array($foo, 'bar'));
13 call_user_func(array($foo, ''));
19 Warning: call_user_func() expects parameter 1 to be a valid callback, class 'foo' not found in %s o…
21 Warning: call_user_func() expects parameter 1 to be a valid callback, class '' not found in %s on l…
25 Warning: call_user_func() expects parameter 1 to be a valid callback, first array member is not a v…
29 Warning: call_user_func() expects parameter 1 to be a valid callback, first array member is not a v…
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');
34 call_user_func('self::y');
54 Warning: call_user_func() expects parameter 1 to be a valid callback, cannot access self:: when no …
H A Dcall_user_func_001.phpt2 Testing call_user_func inside namespace
22 call_user_func(__NAMESPACE__ .'\foobar', 'foobar');
25 call_user_func(array(new $class, 'priv'), 'foobar');
26 call_user_func(array(new $class, 'prot'), 'foobar');
33 Warning: call_user_func() expects parameter 1 to be a valid callback, cannot access private method …
35 Warning: call_user_func() expects parameter 1 to be a valid callback, cannot access protected metho…
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 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) {}
18 Warning: call_user_func() expects parameter 1 to be a valid callback, no array or string given in %…
H A Dbug50261.phpt2 Bug #50261 (Crash When Calling Parent Constructor with call_user_func())
23 call_user_func(array('parent', '__construct'), 3);
24 call_user_func(array('testclass', '__construct'), 4);
25 call_user_func(array('testclass', 'testclass'), 5);
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 Dfr47160.phpt46 var_dump(call_user_func($f, 'you'));
56 var_dump(call_user_func($f, 'again'));
65 var_dump(call_user_func($f, 'there'));
75 var_dump(call_user_func($f, 'devs'));
81 call_user_func($f);
87 call_user_func($f);
94 call_user_func($f);
100 call_user_func($f);
106 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"
6 var_dump(call_user_func([$comparator, 'compare'], 1, 2));
10 Warning: call_user_func() expects parameter 1 to be a valid callback, first array member is not a v…
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 Daccess_modifiers_012.phpt14 call_user_func(array($c, 'none'));
15 call_user_func(array($c, 'prot'));
16 call_user_func(array($c, 'priv'));
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 Dbug45180.phpt8 call_user_func(array('FOO', 'ABC'));
9 call_user_func(array($this, 'ABC'));
12 call_user_func('FOO::ABC');
H A Dns_032.phpt15 call_user_func(__NAMESPACE__."\\foo");
16 call_user_func(__NAMESPACE__."\\test::foo");
H A Dclass_alias_011.phpt17 call_user_func(array('bar', 'test'));
21 call_user_func(array($a, 'test2'));
H A Dns_031.phpt17 call_user_func(__NAMESPACE__."\\foo");
18 call_user_func(__NAMESPACE__."\\test::foo");
H A Dcall_user_func_closure_from_static_method.phpt2 call_user_func() on non-static closure without $this inside a static method
8 return call_user_func($c);
/PHP-7.3/ext/standard/tests/general_functions/
H A Dcallbacks_002.phpt2 call_user_func(): Wrong parameters
6 call_user_func(array('Foo', 'bar'));
7 call_user_func(array(NULL, 'bar'));
8 call_user_func(array('stdclass', NULL));
12 Warning: call_user_func() expects parameter 1 to be a valid callback, class 'Foo' not found in %s o…
14 Warning: call_user_func() expects parameter 1 to be a valid callback, first array member is not a v…
16 Warning: call_user_func() expects parameter 1 to be a valid callback, second array member is not a …
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'));
H A Dbug35229.phpt2 Bug #35229 (call_user_func() crashes when argument stack is nearly full)
21 call_user_func(array('test1', 'use_stack'),
/PHP-7.3/tests/classes/
H A Dtype_hinting_004.phpt20 call_user_func('f1', 1);
25 call_user_func('f1', new A);
30 call_user_func('f2', 1);
35 call_user_func('f2');
40 call_user_func('f2', new A);
45 call_user_func('f2', null);
69 call_user_func(array('C', 'f1'), 1);
79 call_user_func(array('C', 'f2'), 1);
84 call_user_func(array('C', 'f2'));
119 call_user_func(array($d, 'f1'), 1);
[all …]
/PHP-7.3/ext/opcache/tests/
H A Dwrong_inlining_004.phpt2 Inlining throgh call_user_func()
17 var_dump(call_user_func('get_const', $x));
/PHP-7.3/ext/spl/examples/
H A Dcallbackfilteriterator.inc66 return (bool) call_user_func($this->callback, &$this->current);
68 return (bool) call_user_func($this->callback, $this->current);
72 return (bool) call_user_func($this->callback, &$this->key);
74 return (bool) call_user_func($this->callback, $this->key);
78 return (bool) call_user_func($this->callback, &$this->key, &$this->current);
80 return (bool) call_user_func($this->callback, $this->key, $this->current);

Completed in 51 milliseconds

1234