/PHP-8.3/Zend/tests/ |
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_061.phpt | 121 Cannot rebind scope of closure created from function 160 Cannot bind an instance to a static closure 163 Cannot bind an instance to a static closure 166 Cannot rebind scope of closure created from method 169 Cannot rebind scope of closure created from method 172 Cannot rebind scope of closure created from method 190 Cannot rebind scope of closure created from method 193 Cannot rebind scope of closure created from method 196 Cannot rebind scope of closure created from method 217 Cannot rebind scope of closure created from method [all …]
|
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 | bug31102.phpt | 40 {closure}(Test1,1) 42 {closure}(Test2,2) 43 Caught: {closure} 44 {closure}(Test3,3)
|
H A D | first_class_callable_009.phpt | 5 $closure = function() { 9 $foo = $closure->__invoke(...);
|
/PHP-8.3/ext/reflection/tests/ |
H A D | ReflectionFunction_getClosureThis.phpt | 5 $closure = function($param) { return "this is a closure"; }; 6 $rf = new ReflectionFunction($closure);
|
H A D | ReflectionFunction_isClosure_basic.phpt | 8 $closure = function($param) { return "this is a closure"; }; 9 $rc = new ReflectionFunction($closure);
|
H A D | ReflectionGenerator_in_Generator.phpt | 40 string(9) "{closure}" 52 string(9) "{closure}" 63 string(9) "{closure}" 71 string(9) "{closure}" 83 string(9) "{closure}"
|
H A D | ReflectionMethod_getClosureThis.phpt | 28 $closure = $method->getClosure(); 29 $rf = new ReflectionFunction($closure); 35 $closure = $method->getClosure( $object ); 36 $rf = new ReflectionFunction($closure);
|
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_003.phpt | 6 $closure = function($a, $b = 0) { }; 8 $method = new ReflectionMethod ($closure, '__invoke'); 15 $parameter = new ReflectionParameter (array ($closure, '__invoke'), 'b');
|
/PHP-8.3/Zend/tests/anon/ |
H A D | 013.phpt | 2 closure binding to anonymous class 10 $closure = Closure::bind($foo, $class, $class); 11 var_dump($closure());
|
/PHP-8.3/ext/zend_test/tests/ |
H A D | observer_closure_02.phpt | 15 echo 'Called as fake closure.' . PHP_EOL; 20 $closure = \Closure::fromCallable($callable); 21 $closure(); 33 Called as fake closure.
|
H A D | observer_backtrace_01.phpt | 86 <!-- init TestClass::{closure}() --> 88 TestClass::{closure}() 96 <TestClass::{closure}> 100 TestClass::{closure}() 110 </TestClass::{closure}> 111 <TestClass::{closure}> 114 </TestClass::{closure}>
|
H A D | observer_fiber_functions_03.phpt | 44 <!-- init {closure}() --> 45 <{closure}> 61 <!-- init {closure}() --> 62 <{closure}> 80 </{closure}>
|
H A D | observer_shutdown_01.phpt | 38 <!-- init {closure}() --> 39 <{closure}> 48 </{closure}:NULL>
|
H A D | observer_error_05.phpt | 33 <!-- init {closure}() --> 34 <{closure}> 40 </{closure}:NULL>
|
/PHP-8.3/Zend/tests/closures/ |
H A D | closure_from_callable_error.phpt | 48 echo "Test failed to fail, closure is : ".var_export($fn, true)."\n"; 60 echo "Test failed to fail, closure is : ".var_export($fn, true)."\n"; 72 echo "Test failed to fail, closure is : ".var_export($fn, true)."\n"; 84 echo "Test failed to fail, closure is : ".var_export($fn, true)."\n"; 130 echo 'Subclass cannot closure over parent private instance method'."\n"; 143 echo 'Subclass cannot closure over parant private static method'."\n"; 168 echo 'Function scope cannot closure over private instance method'."\n"; 207 Subclass cannot closure over parent private instance method 208 Subclass cannot closure over parant private static method 209 Function scope cannot closure over protected instance method [all …]
|
/PHP-8.3/ext/standard/tests/array/ |
H A D | array_walk_closure.phpt | 2 array_walk() closure tests 109 closure with array 111 Warning: {closure}(): Argument #3 ($udata) must be passed by reference, value given in %s on line %d 117 Warning: {closure}(): Argument #3 ($udata) must be passed by reference, value given in %s on line %d 123 Warning: {closure}(): Argument #3 ($udata) must be passed by reference, value given in %s on line %d 131 closure with use 147 closure with object 149 Warning: {closure}(): Argument #3 ($udata) must be passed by reference, value given in %s on line %d 155 Warning: {closure}(): Argument #3 ($udata) must be passed by reference, value given in %s on line %d 201 closure and exception [all …]
|
H A D | usort_variation7.phpt | 55 Warning: {closure}(): Argument #1 ($value1) must be passed by reference, value given in %s on line … 57 Warning: {closure}(): Argument #2 ($value2) must be passed by reference, value given in %s on line … 59 Warning: {closure}(): Argument #1 ($value1) must be passed by reference, value given in %s on line … 61 Warning: {closure}(): Argument #2 ($value2) must be passed by reference, value given in %s on line … 63 Warning: {closure}(): Argument #1 ($value1) must be passed by reference, value given in %s on line … 65 Warning: {closure}(): Argument #2 ($value2) must be passed by reference, value given in %s on line … 67 Warning: {closure}(): Argument #1 ($value1) must be passed by reference, value given in %s on line … 69 Warning: {closure}(): Argument #2 ($value2) must be passed by reference, value given in %s on line …
|
H A D | uasort_variation7.phpt | 55 Warning: {closure}(): Argument #1 ($value1) must be passed by reference, value given in %s on line … 57 Warning: {closure}(): Argument #2 ($value2) must be passed by reference, value given in %s on line … 59 Warning: {closure}(): Argument #1 ($value1) must be passed by reference, value given in %s on line … 61 Warning: {closure}(): Argument #2 ($value2) must be passed by reference, value given in %s on line … 63 Warning: {closure}(): Argument #1 ($value1) must be passed by reference, value given in %s on line … 65 Warning: {closure}(): Argument #2 ($value2) must be passed by reference, value given in %s on line … 67 Warning: {closure}(): Argument #1 ($value1) must be passed by reference, value given in %s on line … 69 Warning: {closure}(): Argument #2 ($value2) must be passed by reference, value given in %s on line …
|
/PHP-8.3/Zend/tests/function_arguments/ |
H A D | sensitive_parameter_closure.phpt | 17 #0 %ssensitive_parameter_closure.php(10): {closure}(Object(SensitiveParameterValue)) 26 string(9) "{closure}" 43 string(9) "{closure}"
|
/PHP-8.3/ext/standard/tests/strings/ |
H A D | str_replace_array_refs2.phpt | 5 $closure = function (array $array, array $keys, $value) 18 $obj->prop = $closure($obj->prop, ['x'], 'a'); 22 $array = $closure($array, ['x'], 'a');
|