/PHP-5.3/Zend/ |
H A D | zend_closures.c | 110 return &closure->func; in zend_get_closure_method_def() 187 efree(closure->debug_info); in zend_closure_free_storage() 190 efree(closure); in zend_closure_free_storage() 196 zend_closure *closure; in zend_closure_new() local 213 zend_closure *closure; in zend_closure_get_closure() local 220 *fptr_ptr = &closure->func; in zend_closure_get_closure() 243 if (closure->func.type == ZEND_USER_FUNCTION && closure->func.op_array.static_variables) { in zend_closure_get_debug_info() 279 return closure->debug_info; in zend_closure_get_debug_info() 291 return closure->std.properties; in zend_closure_get_properties() 382 zend_closure *closure; in zend_create_closure() local [all …]
|
/PHP-5.3/ext/reflection/tests/ |
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 | 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 | 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');
|
/PHP-5.3/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 | 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_033.phpt | 2 Closure 033: Dynamic closure property and private function 26 Test::{closure}()
|
H A D | closure_027.phpt | 6 function test(closure $a) { 28 Warning: Missing argument 1 for {closure}(), called in %s on line %d and defined in %s on line %d
|
H A D | bug64960.phpt | 16 // this must be a class, closure does not trigger segfault 36 #0 [internal function]: {closure}(8, 'ob_end_clean():...', '%s', 9, Array)
|
H A D | closure_025.phpt | 2 Closure 025: Using closure in create_function()
|
H A D | closure_011.phpt | 2 Closure 011: Lexical copies not static in closure
|
H A D | bug61273.phpt | 14 Warning: Parameter 1 to {closure}() expected to be a reference, value given in %sbug61273.php on li…
|
H A D | bug54367.phpt | 2 Bug #54367 (Use of closure causes problem in ArrayAccess)
|
H A D | closure_026.phpt | 2 Closure 026: Assigning a closure object to an array in $this
|
/PHP-5.3/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
|
H A D | spl_autoload_013.phpt | 5 $closure = function($class) { 22 spl_autoload_register($closure);
|
/PHP-5.3/ext/curl/tests/ |
H A D | curl_basic_006.phpt | 2 Test curl_opt() function with CURLOPT_WRITEFUNCTION parameter set to a closure 22 echo '*** Testing curl_setopt($ch, CURLOPT_WRITEFUNCTION, <closure>); ***' . "\n"; 39 *** Testing curl_setopt($ch, CURLOPT_WRITEFUNCTION, <closure>); ***
|
/PHP-5.3/ext/standard/tests/general_functions/ |
H A D | closures_001.phpt | 2 register_shutdown_function() & closure
|
H A D | closures_002.phpt | 2 register_tick_function() & closure
|
/PHP-5.3/ext/filter/tests/ |
H A D | callback_closure.phpt | 2 callback function is a closure
|