Home
last modified time | relevance | path

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

123456

/PHP-7.2/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 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 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 Dbug26697.phpt17 {closure}(NotExistingClass)
19 {closure}(NotExistingClass), done
H A Dclosure_007.phpt26 $closure = $getClosure();
28 $closure();
H A Dclosure_043.phpt5 /* Whether it's scoped or not, a static closure cannot have
58 Warning: Cannot bind an instance to a static closure in %s on line %d
60 Warning: Cannot bind an instance to a static closure in %s on line %d
70 Warning: Cannot bind an instance to a static closure in %s on line %d
72 Warning: Cannot bind an instance to a static closure in %s on line %d
H A Dbug72057.phpt16 #0 %s(%d): {closure}(8, 'A non well form...', '%s', %d, Array)
17 #1 %s(%d): {closure}('7as')
/PHP-7.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";
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.2/ext/reflection/tests/
H A DReflectionFunction_isClosure_basic.phpt12 $closure = function($param) { return "this is a closure"; };
13 $rc = new ReflectionFunction($closure);
H A DReflectionMethod_getClosureThis.phpt32 $closure = $method->getClosure();
33 $rf = new ReflectionFunction($closure);
39 $closure = $method->getClosure( $object );
40 $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 DReflectionGenerator_in_Generator.phpt44 string(9) "{closure}"
55 string(9) "{closure}"
67 string(9) "{closure}"
H A DReflectionType_002.phpt6 $closure = function(Test $x): Test2 { return new Test2($x); };
7 $rm = new ReflectionMethod($closure, '__invoke');
H A DReflectionClass_isCloneable_001.phpt32 $closure = function () { };
33 $obj = new ReflectionClass($closure);
35 $obj = new ReflectionObject($closure);
37 $h = clone $closure;
/PHP-7.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');
/PHP-7.2/ext/standard/tests/general_functions/
H A Dbug66094.phpt6 register_tick_function($closure = function () { echo "Tick!\n"; });
7 unregister_tick_function($closure);
/PHP-7.2/Zend/tests/variadic/
H A Dclosure_invoke.phpt6 $closure = function(&...$refs) {};
7 $closure->__invoke(
/PHP-7.2/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.2/Zend/tests/type_declarations/
H A Dscalar_none.phpt38 *** Caught Too few arguments to function {closure}(), 0 passed in %s on line %d and exactly 1 expec…
40 *** Caught Too few arguments to function {closure}(), 0 passed in %s on line %d and exactly 1 expec…
42 *** Caught Too few arguments to function {closure}(), 0 passed in %s on line %d and exactly 1 expec…
44 *** Caught Too few arguments to function {closure}(), 0 passed in %s on line %d and exactly 1 expec…
H A Dcallable_002.phpt11 $closure = function (callable $arg) {};
19 $rc = new ReflectionFunction($closure);
H A Dscalar_null.phpt40 *** Caught Argument 1 passed to {closure}() must be of the type integer, null given, called in %s o…
42 *** Caught Argument 1 passed to {closure}() must be of the type float, null given, called in %s on …
44 *** Caught Argument 1 passed to {closure}() must be of the type string, null given, called in %s on…
46 *** Caught Argument 1 passed to {closure}() must be of the type boolean, null given, called in %s o…

Completed in 19 milliseconds

123456