Home
last modified time | relevance | path

Searched refs:closure (Results 26 – 50 of 231) sorted by relevance

12345678910

/PHP-8.2/ext/zend_test/tests/
H A Dobserver_closure_02.phpt14 echo 'Called as fake closure.' . PHP_EOL;
19 $closure = \Closure::fromCallable($callable);
20 $closure();
32 Called as fake closure.
H A Dobserver_backtrace_01.phpt85 <!-- init TestClass::{closure}() -->
87 TestClass::{closure}()
95 <TestClass::{closure}>
99 TestClass::{closure}()
109 </TestClass::{closure}>
110 <TestClass::{closure}>
113 </TestClass::{closure}>
H A Dobserver_fiber_functions_03.phpt43 <!-- init {closure}() -->
44 <{closure}>
60 <!-- init {closure}() -->
61 <{closure}>
79 </{closure}>
H A Dobserver_shutdown_01.phpt37 <!-- init {closure}() -->
38 <{closure}>
47 </{closure}:NULL>
H A Dobserver_error_05.phpt32 <!-- init {closure}() -->
33 <{closure}>
39 </{closure}:NULL>
/PHP-8.2/Zend/tests/
H A Dclosure_037.phpt33 $closure = $a->getClosure();
34 $closure();
36 $closure = $b->getClosure();
37 $closure();
H A Dbug52060.phpt2 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 Dclosure_061.phpt121 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 Dclosure_029.phpt6 var_dump(function() { } instanceof closure);
7 var_dump(function(&$x) { } instanceof closure);
8 var_dump(@function(&$x) use ($y, $z) { } instanceof closure);
H A D037.phpt6 namespace closure;
8 class closure { static $x = 1;}
11 var_dump(closure::$x);
H A Dbug31102.phpt40 {closure}(Test1,1)
42 {closure}(Test2,2)
43 Caught: {closure}
44 {closure}(Test3,3)
H A Dfirst_class_callable_009.phpt5 $closure = function() {
9 $foo = $closure->__invoke(...);
/PHP-8.2/ext/reflection/tests/
H A DReflectionFunction_getClosureThis.phpt5 $closure = function($param) { return "this is a closure"; };
6 $rf = new ReflectionFunction($closure);
H A DReflectionFunction_isClosure_basic.phpt8 $closure = function($param) { return "this is a closure"; };
9 $rc = new ReflectionFunction($closure);
H A DReflectionGenerator_in_Generator.phpt40 string(9) "{closure}"
52 string(9) "{closure}"
63 string(9) "{closure}"
71 string(9) "{closure}"
83 string(9) "{closure}"
H A DReflectionMethod_getClosureThis.phpt28 $closure = $method->getClosure();
29 $rf = new ReflectionFunction($closure);
35 $closure = $method->getClosure( $object );
36 $rf = new ReflectionFunction($closure);
H A Dbug67068.phpt2 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 Dclosures_003.phpt6 $closure = function($a, $b = 0) { };
8 $method = new ReflectionMethod ($closure, '__invoke');
15 $parameter = new ReflectionParameter (array ($closure, '__invoke'), 'b');
/PHP-8.2/Zend/tests/anon/
H A D013.phpt2 closure binding to anonymous class
10 $closure = Closure::bind($foo, $class, $class);
11 var_dump($closure());
/PHP-8.2/Zend/tests/closures/
H A Dclosure_from_callable_error.phpt48 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.2/ext/standard/tests/array/
H A Darray_walk_closure.phpt2 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 Dusort_variation7.phpt55 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 Duasort_variation7.phpt55 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.2/Zend/tests/function_arguments/
H A Dsensitive_parameter_closure.phpt17 #0 %ssensitive_parameter_closure.php(10): {closure}(Object(SensitiveParameterValue))
26 string(9) "{closure}"
43 string(9) "{closure}"
/PHP-8.2/ext/standard/tests/strings/
H A Dstr_replace_array_refs2.phpt5 $closure = function (array $array, array $keys, $value)
18 $obj->prop = $closure($obj->prop, ['x'], 'a');
22 $array = $closure($array, ['x'], 'a');

Completed in 25 milliseconds

12345678910