Home
last modified time | relevance | path

Searched refs:closure (Results 51 – 75 of 251) sorted by relevance

1234567891011

/php-src/Zend/tests/
H A Dbug31102.phpt40 {closure:%s:%d}(Test1,1)
42 {closure:%s:%d}(Test2,2)
43 Caught: {closure:%s:%d}
44 {closure:%s:%d}(Test3,3)
H A Dfirst_class_callable_009.phpt5 $closure = function() {
9 $foo = $closure->__invoke(...);
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_026.phpt2 Closure 026: Assigning a closure object to an array in $this
38 string(%d) "{closure:%s:%d}"
55 string(%d) "{closure:%s:%d}"
H A Dbug77627.phpt8 $closure = function(){};
10 var_dump(method_exists($closure, "__INVOKE"));
H A Dgh8810_3.phpt2 GH-8810: Fix reported line number of multi-line closure call
17 #0 %s(%d): {closure:%s:%d}('foo')
H A Dbug81076.phpt2 Bug #81076 Invalid implicit binds cause incorrect static var count in closure debug info
10 string(%d) "{closure:%s:%d}"
H A Dclosure_059.phpt37 Exception: {closure:%s:%d}(): Argument #1 ($a) must be of type A, B given, called in %s on line %d
38 Exception: {closure:%s:%d}(): Argument #1 ($a) must be of type A, B given
39 Exception: {closure:%s:%d}(): Argument #1 ($a) must be of type A, B given
H A Dbug81626.phpt13 $closure = Closure::fromCallable([TestClass::class, 'foo']);
14 var_dump($closure());
/php-src/Zend/tests/function_arguments/
H A Dsensitive_parameter_closure.phpt17 #0 %s(%d): {closure:%s:%d}(Object(SensitiveParameterValue))
26 string(%d) "{closure:%s:%d}"
43 string(%d) "{closure:%s:%d}"
/php-src/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-src/ext/zend_test/tests/
H A Dobserver_fiber_functions_03.phpt44 <!-- init {closure:%s:%d}() -->
45 <{closure:%s:%d}>
61 <!-- init {closure:%s:%d}() -->
62 <{closure:%s:%d}>
80 </{closure:%s:%d}>
H A Dobserver_shutdown_01.phpt38 <!-- init {closure:%s:%d}() -->
39 <{closure:%s:%d}>
48 </{closure:%s:%d}:NULL>
H A Dobserver_error_05.phpt33 <!-- init {closure:%s:%d}() -->
34 <{closure:%s:%d}>
40 </{closure:%s:%d}:NULL>
/php-src/ext/curl/tests/
H A Dcurl_basic_006.phpt2 Test curl_opt() function with CURLOPT_WRITEFUNCTION parameter set to a closure
14 echo '*** Testing curl_setopt($ch, CURLOPT_WRITEFUNCTION, <closure>); ***' . "\n";
33 *** Testing curl_setopt($ch, CURLOPT_WRITEFUNCTION, <closure>); ***
/php-src/Zend/tests/type_declarations/
H A Dcallable_001.phpt13 $closure = function () {};
17 foo($closure);
26 string(%d) "{closure:%s:%d}"
H A Dscalar_none.phpt29 *** Caught Too few arguments to function {closure:%s:%d}(), 0 passed in %s on line %d and exactly 1…
31 *** Caught Too few arguments to function {closure:%s:%d}(), 0 passed in %s on line %d and exactly 1…
33 *** Caught Too few arguments to function {closure:%s:%d}(), 0 passed in %s on line %d and exactly 1…
35 *** Caught Too few arguments to function {closure:%s:%d}(), 0 passed in %s on line %d and exactly 1…
H A Dscalar_null.phpt30 *** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, null given, called in %s on lin…
32 *** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, null given, called in %s on l…
34 *** Caught {closure:%s:%d}(): Argument #1 ($s) must be of type string, null given, called in %s on …
36 *** Caught {closure:%s:%d}(): Argument #1 ($b) must be of type bool, null given, called in %s on li…
/php-src/ext/spl/tests/
H A Dspl_autoload_013.phpt5 $closure = function($class) {
22 spl_autoload_register($closure);
34 string(%d) "{closure:%s:%d}"
/php-src/ext/standard/tests/general_functions/
H A Dbug66094.phpt6 register_tick_function($closure = function () { echo "Tick!\n"; });
7 unregister_tick_function($closure);
/php-src/Zend/tests/variadic/
H A Dclosure_invoke.phpt6 $closure = function(&...$refs) {};
7 $closure->__invoke(
/php-src/ext/opcache/tests/jit/
H A Dclosure_001.phpt36 string(%d) "{closure:%s:%d}"
47 string(%d) "{closure:%s:%d}"
58 string(%d) "{closure:%s:%d}"
/php-src/ext/reflection/tests/types/
H A DReflectionType_002.phpt6 $closure = function(Test $x): Test2 { return new Test2($x); };
7 $rm = new ReflectionMethod($closure, '__invoke');
/php-src/ext/reflection/tests/
H A DReflectionClass_isCloneable_001.phpt33 $closure = function () { };
34 $obj = new ReflectionClass($closure);
36 $obj = new ReflectionObject($closure);
38 $h = clone $closure;

Completed in 29 milliseconds

1234567891011