/PHP-5.5/tests/output/ |
H A D | ob_start_callbacks.phpt | 9 echo 'closure in variable', "\n";
|
/PHP-5.5/ext/standard/tests/general_functions/ |
H A D | bug66094.phpt | 6 register_tick_function($closure = function () { echo "Tick!\n"; }); 7 unregister_tick_function($closure);
|
H A D | closures_001.phpt | 2 register_shutdown_function() & closure
|
H A D | closures_002.phpt | 2 register_tick_function() & closure
|
/PHP-5.5/ext/standard/tests/file/ |
H A D | 007_basic.phpt | 54 // confirm the closure, using ftell() and feof(), expect, false 81 // confirm the closure, using ftell() and feof(), expect, false
|
/PHP-5.5/ext/standard/tests/array/ |
H A D | array_walk_closure.phpt | 2 array_walk() closure tests 125 closure with array 141 closure with use 157 closure with object 205 closure and exception 210 string(9) "{closure}"
|
/PHP-5.5/ext/spl/tests/ |
H A D | spl_autoload_013.phpt | 5 $closure = function($class) { 22 spl_autoload_register($closure);
|
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.5/ext/spl/ |
H A D | php_spl.c | 397 zval *closure; member 406 if (alfi->closure) { in autoload_func_info_dtor() 407 zval_ptr_dtor(&alfi->closure); in autoload_func_info_dtor() 538 alfi.closure = NULL; in PHP_FUNCTION() 551 alfi.closure = zcallable; in PHP_FUNCTION() 562 if (alfi.closure) { in PHP_FUNCTION() 593 spl_alfi.closure = NULL; in PHP_FUNCTION() 605 if (alfi.closure) { in PHP_FUNCTION() 606 Z_DELREF_P(alfi.closure); in PHP_FUNCTION() 730 if (alfi->closure) { in PHP_FUNCTION() [all …]
|
/PHP-5.5/ext/reflection/tests/ |
H A D | bug67068.phpt | 2 Bug #67068 (ReflectionFunction::getClosure returns something that doesn't report as a closure) 11 $closure = $reflector->getClosure($object); 13 $closureReflector = new \ReflectionFunction($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 | 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 | 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 | 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 | 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 | ReflectionFunction_isGenerator_basic.phpt | 6 $closure1 = function() {return "this is a closure"; };
|
H A D | ReflectionMethod_getClosure_error.phpt | 6 * Description: Returns a dynamically created closure for the method 44 $closure = $method->getClosure();
|
H A D | ReflectionFunction_getClosureThis.phpt | 11 $closure = function($param) { return "this is a closure"; }; 12 $rf = new ReflectionFunction($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_getClosure_error.phpt | 6 * Description: Returns a dynamically created closure for the function 19 $closure = $func->getClosure('bar');
|
H A D | ReflectionFunction_isClosure_basic.phpt | 14 $closure = function($param) { return "this is a closure"; }; 15 $rc = 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 | 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 | ReflectionClass_isCloneable_001.phpt | 32 $closure = function () { }; 33 $obj = new ReflectionClass($closure); 35 $obj = new ReflectionObject($closure); 37 $h = clone $closure;
|
/PHP-5.5/ext/reflection/ |
H A D | php_reflection.c | 618 zend_function *closure; in _class_string() local 624 mptr = closure; in _class_string() 626 closure = NULL; in _class_string() 631 _free_function(closure TSRMLS_CC); in _class_string() 1605 zval *closure = NULL; in ZEND_METHOD() local 1620 Z_ADDREF_P(closure); in ZEND_METHOD() 1649 intern->obj = closure; in ZEND_METHOD() 3735 zend_function *closure; in _addmethod() local 3743 mptr = closure; in _addmethod() 3792 if (closure) { in ZEND_METHOD() [all …]
|