Home
last modified time | relevance | path

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

123456

/PHP-7.4/Zend/tests/
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 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
192 Cannot rebind scope of closure created from method
195 Cannot rebind scope of closure created from method
198 Cannot rebind scope of closure created from method
219 Cannot rebind scope of closure created from method
[all …]
H A D037.phpt6 namespace closure;
8 class closure { static $x = 1;}
11 var_dump(closure::$x);
H A Dbug31102.phpt41 {closure}(Test1,1)
43 {closure}(Test2,2)
44 Caught: {closure}
45 {closure}(Test3,3)
H A Dclosure_006.phpt12 $closure = $getClosure (2);
13 $closure ();
H A Dclosure_call_leak_with_exception.phpt7 $closure = function($foo) { var_dump($foo); };
8 $closure(yield);
H A Dbug26697.phpt17 {closure}(NotExistingClass)
19 {closure}(NotExistingClass), done
H A Dbug81626.phpt13 $closure = Closure::fromCallable([TestClass::class, 'foo']);
14 var_dump($closure());
H A Dclosure_059.phpt36 Exception: Argument 1 passed to {closure}() must be an instance of A, instance of B %s
37 Exception: Argument 1 passed to {closure}() must be an instance of A, instance of B %s
38 Exception: Argument 1 passed to {closure}() must be an instance of A, instance of B %s
H A Dclosure_007.phpt26 $closure = $getClosure();
28 $closure();
/PHP-7.4/ext/reflection/tests/
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');
H A DReflectionType_002.phpt6 $closure = function(Test $x): Test2 { return new Test2($x); };
7 $rm = new ReflectionMethod($closure, '__invoke');
H A DReflectionGenerator_in_Generator.phpt44 string(9) "{closure}"
55 string(9) "{closure}"
67 string(9) "{closure}"
H A DReflectionClass_isCloneable_001.phpt32 $closure = function () { };
33 $obj = new ReflectionClass($closure);
35 $obj = new ReflectionObject($closure);
37 $h = clone $closure;
/PHP-7.4/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";
96 echo "Test failed to fail, closure is : ".var_export($fn, true)."\n";
108 echo "Test failed to fail, closure is : ".var_export($fn, true)."\n";
120 echo "Test failed to fail, closure is : ".var_export($fn, true)."\n";
208 Subclass cannot closure over parent private instance method
209 Subclass cannot closure over parant private static method
210 Function scope cannot closure over protected instance method
[all …]
/PHP-7.4/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');
/PHP-7.4/ext/standard/tests/general_functions/
H A Dbug66094.phpt6 register_tick_function($closure = function () { echo "Tick!\n"; });
7 unregister_tick_function($closure);
/PHP-7.4/Zend/tests/variadic/
H A Dclosure_invoke.phpt6 $closure = function(&...$refs) {};
7 $closure->__invoke(
/PHP-7.4/Zend/tests/type_declarations/
H A Dscalar_none.phpt28 *** Caught Too few arguments to function {closure}(), 0 passed in %s on line %d and exactly 1 expec…
30 *** Caught Too few arguments to function {closure}(), 0 passed in %s on line %d and exactly 1 expec…
32 *** Caught Too few arguments to function {closure}(), 0 passed in %s on line %d and exactly 1 expec…
34 *** Caught Too few arguments to function {closure}(), 0 passed in %s on line %d and exactly 1 expec…
H A Dscalar_null.phpt30 *** Caught Argument 1 passed to {closure}() must be of the type int, null given, called in %s on li…
32 *** Caught Argument 1 passed to {closure}() must be of the type float, null given, called in %s on …
34 *** Caught Argument 1 passed to {closure}() must be of the type string, null given, called in %s on…
36 *** Caught Argument 1 passed to {closure}() must be of the type bool, null given, called in %s on l…
H A Dcallable_002.phpt11 $closure = function (callable $arg) {};
19 $rc = new ReflectionFunction($closure);
/PHP-7.4/ext/curl/tests/
H A Dcurl_basic_006.phpt2 Test curl_opt() function with CURLOPT_WRITEFUNCTION parameter set to a closure
20 echo '*** Testing curl_setopt($ch, CURLOPT_WRITEFUNCTION, <closure>); ***' . "\n";
39 *** Testing curl_setopt($ch, CURLOPT_WRITEFUNCTION, <closure>); ***
/PHP-7.4/Zend/tests/function_arguments/
H A Dcall_with_trailing_comma_basic.phpt53 'closure',
90 {closure}
93 string(7) "closure"

Completed in 37 milliseconds

123456