Searched refs:__invoke (Results 1 – 25 of 25) sorted by relevance
/PHP-5.6/Zend/tests/ |
H A D | closure_014.phpt | 6 function __invoke() { 11 function &__invoke(&$a) { 16 function __invoke() { 22 var_dump($x->__invoke()); 24 $x->__invoke(); 31 $x->__invoke(); 38 $e =& $x->__invoke($b); 42 $x->__invoke($b); 53 $x->__invoke($d); 59 $x->__invoke(); [all …]
|
H A D | closure_016.phpt | 6 function __invoke() { 21 var_dump(is_callable(array($test,"__invoke"), true, $name)); 23 var_dump(is_callable(array($test,"__invoke"), false, $name)); 37 Foo::__invoke 39 Foo::__invoke 41 Foo::__invoke 43 Foo::__invoke 45 Closure::__invoke 47 Closure::__invoke 49 Closure::__invoke [all …]
|
H A D | bug61025.phpt | 2 Bug #61025 (__invoke() visibility not honored) 7 static function __invoke(); 11 private function __invoke() { 19 echo $b->__invoke(); 23 Warning: The magic method __invoke() must have public visibility and cannot be static in %sbug61025… 25 Warning: The magic method __invoke() must have public visibility and cannot be static in %sbug61025… 27 Fatal error: Call to private method Bar::__invoke() from context '' in %sbug61025.php on line %d
|
H A D | closure_013.phpt | 2 Closure 013: __invoke() on temporary result 6 function __invoke() { 17 $test->__invoke(); 19 $test->__invoke(); 20 $test = foo()->__invoke();
|
H A D | call_user_func_003.phpt | 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 | dereference_004.phpt | 2 Testing array dereference on __invoke() result 15 public function __invoke() {
|
H A D | bug46409.phpt | 2 Bug #46409 (__invoke method called outside of object context when using array_map) 8 public function __invoke() {
|
H A D | bug69212.phpt | 26 $f->__invoke(do_throw()); 33 $f->__invoke($t->bar(Test::foo(do_throw())));
|
H A D | bug64960.phpt | 9 public function __invoke (Exception $e) 38 #2 [internal function]: ExceptionHandler->__invoke(Object(Exception))
|
H A D | closure_025.phpt | 8 var_dump($a(2)->__invoke(4));
|
H A D | bug52060.phpt | 8 var_dump(method_exists($closure, '__invoke')); // true
|
H A D | closure_030.phpt | 9 var_dump($$a->__invoke(2));
|
H A D | closure_020.phpt | 12 var_dump($this->a->__invoke());
|
/PHP-5.6/ext/reflection/tests/ |
H A D | bug52057.phpt | 9 var_dump($reflection->hasMethod('__invoke')); // true 12 var_dump($reflection->hasMethod('__invoke')); // true 15 var_dump($reflection->hasMethod('__invoke')); // true 18 var_dump($h = $reflection->getMethod('__invoke')); // true 22 var_dump($h = $reflection->getMethod('__invoke')); // true 36 string(8) "__invoke" 40 string(17) "Closure::__invoke" 43 string(8) "__invoke" 47 string(17) "Closure::__invoke" 50 string(8) "__invoke" [all …]
|
H A D | closures_002.phpt | 7 function __invoke($a, $b = 0) { } 10 $rm = new ReflectionMethod(new Test, '__invoke'); 15 $rp = new ReflectionParameter(array(new Test, '__invoke'), 0); 18 $rp = new ReflectionParameter(array(new Test, '__invoke'), 1); 24 string(8) "__invoke"
|
H A D | closures_001.phpt | 9 $rm = $ro->getMethod('__invoke'); 14 if ($rm->getName() == '__invoke') { 22 $rm = new ReflectionMethod($closure, '__invoke'); 29 $rp = new ReflectionParameter(array($closure, '__invoke'), 0); 31 $rp = new ReflectionParameter(array($closure, '__invoke'), 1); 33 $rp = new ReflectionParameter(array($closure, '__invoke'), 'a'); 35 $rp = new ReflectionParameter(array($closure, '__invoke'), 'b'); 57 string(8) "__invoke"
|
H A D | closures_004.phpt | 12 $closure2->__invoke (); 17 $closure2->__invoke (); 21 $method = new ReflectionMethod ($closure, '__invoke'); 25 $closure2->__invoke (); 30 $closure2->__invoke ();
|
H A D | closures_003.phpt | 8 $method = new ReflectionMethod ($closure, '__invoke'); 15 $parameter = new ReflectionParameter (array ($closure, '__invoke'), 'b'); 23 __invoke 24 __invoke
|
H A D | bug62384.phpt | 10 $reflection_method = $reflection_class->getMethod('__invoke');
|
H A D | ReflectionParameter_export_error2.phpt | 30 Method ReflectionFunction::__invoke() does not exist
|
/PHP-5.6/Zend/tests/variadic/ |
H A D | closure_invoke.phpt | 2 Closure::__invoke() with variadic parameter 7 $closure->__invoke(
|
/PHP-5.6/ext/spl/tests/ |
H A D | spl_autoload_014.phpt | 14 public function __invoke($class) { 20 public function __invoke($class) {
|
H A D | spl_autoload_013.phpt | 14 public function __invoke($class) {
|
/PHP-5.6/Zend/ |
H A D | zend_closures.c | 48 ZEND_METHOD(Closure, __invoke) /* {{{ */ in ZEND_METHOD() argument
|
/PHP-5.6/ |
H A D | NEWS | 3474 . Fixed bug #61025 (__invoke() visibility not honored). (Laruence)
|
Completed in 48 milliseconds