/PHP-5.4/Zend/ |
H A D | zend_closures.c | 84 zend_closure *closure; in ZEND_METHOD() local 172 return &closure->func; in zend_get_closure_method_def() 259 if (closure->this_ptr) { in zend_closure_free_storage() 263 efree(closure); in zend_closure_free_storage() 269 zend_closure *closure; in zend_closure_new() local 289 …zend_create_closure(&result, &closure->func, closure->func.common.scope, closure->this_ptr TSRMLS_… in zend_closure_clone() 297 zend_closure *closure; in zend_closure_get_closure() local 306 if (closure->this_ptr) { in zend_closure_get_closure() 383 *table = closure->this_ptr ? &closure->this_ptr : NULL; in zend_closure_get_gc() 445 zend_closure *closure; in zend_create_closure() local [all …]
|
/PHP-5.4/ext/reflection/tests/ |
H A D | closures_004.phpt | 2 Reflection on closures: Segfault with getClosure() on closure itself 5 $closure = function() { echo "Invoked!\n"; }; 7 $method = new ReflectionFunction ($closure); 14 unset ($closure); 19 $closure = function() { echo "Invoked!\n"; }; 21 $method = new ReflectionMethod ($closure, '__invoke'); 22 $closure2 = $method->getClosure ($closure); 27 unset ($closure);
|
H A D | closures_001.phpt | 6 $closure = function($a, $b = 0) { }; 8 $ro = new ReflectionObject($closure); 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'); 40 $rp = new ReflectionParameter($closure, 0); 42 $rp = new ReflectionParameter($closure, 1); 44 $rp = new ReflectionParameter($closure, 'a'); [all …]
|
H A D | ReflectionFunction_getClosureScopeClass.phpt | 11 $closure = function($param) { return "this is a closure"; }; 12 $rf = new ReflectionFunction($closure); 17 return function($param) { return "this is a closure"; }; 21 $closure = A::getClosure(); 22 $rf = new ReflectionFunction($closure);
|
H A D | closures_003_v1.phpt | 6 $closure = function($a, $b = 0) { }; 8 $method = new ReflectionFunction ($closure); 15 $parameter = new ReflectionParameter ($closure, 'b'); 23 {closure} 24 {closure}
|
H A D | bug52057.phpt | 6 $closure = function($a) { echo $a; }; 8 $reflection = new ReflectionClass('closure'); 11 $reflection = new ReflectionClass($closure); 14 $reflection = new ReflectionObject($closure); 17 $reflection = new ReflectionClass('closure'); 21 $reflection = new ReflectionClass($closure); 25 $reflection = new ReflectionObject($closure);
|
H A D | ReflectionMethod_getClosure_basic.phpt | 6 * Description: Returns a dynamically created closure for the method 38 $closure = $method->getClosure(); 39 $closure(); 43 $closure = $method->getClosure( $object ); 44 $closure(); 46 $closure();
|
H A D | ReflectionFunction_getClosure_basic.phpt | 6 * Description: Returns a dynamically created closure for the function 24 $closure = $func->getClosure(); 25 $closure(); 28 $closure = $func->getClosure(); 29 $closure( 'succeeded' );
|
H A D | ReflectionFunction_getClosureThis.phpt | 11 $closure = function($param) { return "this is a closure"; }; 12 $rf = new ReflectionFunction($closure);
|
H A D | ReflectionMethod_getClosureThis.phpt | 34 $closure = $method->getClosure(); 35 $rf = new ReflectionFunction($closure); 41 $closure = $method->getClosure( $object ); 42 $rf = new ReflectionFunction($closure);
|
H A D | ReflectionFunction_isClosure_basic.phpt | 14 $closure = function($param) { return "this is a closure"; }; 15 $rc = new ReflectionFunction($closure);
|
H A D | closures_003.phpt | 6 $closure = function($a, $b = 0) { }; 8 $method = new ReflectionMethod ($closure, '__invoke'); 15 $parameter = new ReflectionParameter (array ($closure, '__invoke'), 'b');
|
H A D | ReflectionClass_isCloneable_001.phpt | 32 $closure = function () { }; 33 $obj = new ReflectionClass($closure); 35 $obj = new ReflectionObject($closure); 37 $h = clone $closure;
|
/PHP-5.4/Zend/tests/ |
H A D | bug54358.phpt | 12 $closure = function() use ($asserter, &$function) { 16 $closure(); 20 $closure = function() use ($asserter, $function) { 24 $closure(); 28 $closure = function() use ($asserter, $function) { 32 $closure();
|
H A D | closure_032.phpt | 6 function test(closure $a) { 23 [function] => {closure} 32 #0 {closure}(23) called at [%s:%d] 39 [function] => {closure} 68 #0 {closure}(23) called at [%s:%d]
|
H A D | closure_037.phpt | 33 $closure = $a->getClosure(); 34 $closure(); 36 $closure = $b->getClosure(); 37 $closure();
|
H A D | bug52060.phpt | 2 Bug #52060 (Memory leak when passing a closure to method_exists()) 6 $closure = function($a) { echo $a; }; 8 var_dump(method_exists($closure, '__invoke')); // true
|
H A D | closure_029.phpt | 6 var_dump(function() { } instanceof closure); 7 var_dump(function(&$x) { } instanceof closure); 8 var_dump(@function(&$x) use ($y, $z) { } instanceof closure);
|
H A D | 037.phpt | 6 namespace closure; 8 class closure { static $x = 1;} 11 var_dump(closure::$x);
|
H A D | closure_006.phpt | 12 $closure = $getClosure (2); 13 $closure ();
|
H A D | closure_007.phpt | 26 $closure = $getClosure(); 28 $closure();
|
H A D | closure_043.phpt | 5 /* Whether it's scoped or not, a static closure cannot have 59 Warning: Cannot bind an instance to a static closure in %s on line %d 64 Warning: Cannot bind an instance to a static closure in %s on line %d 77 Warning: Cannot bind an instance to a static closure in %s on line %d 82 Warning: Cannot bind an instance to a static closure in %s on line %d
|
H A D | callable_type_hint_002.phpt | 11 $closure = function (callable $arg) {}; 19 $rc = new ReflectionFunction($closure);
|
/PHP-5.4/ext/spl/tests/ |
H A D | spl_autoload_014.phpt | 5 $closure = function($class) { 6 echo "closure called with class $class\n"; 29 spl_autoload_register($closure); 35 spl_autoload_unregister($closure); 43 closure called with class TestX
|
/PHP-5.4/ext/standard/tests/general_functions/ |
H A D | bug66094.phpt | 6 register_tick_function($closure = function () { echo "Tick!\n"; }); 7 unregister_tick_function($closure);
|