Home
last modified time | relevance | path

Searched refs:closure (Results 1 – 25 of 148) sorted by last modified time

123456

/PHP-7.4/
H A DNEWS154 . Fixed bug #81353 (segfault with preloading and statically bound closure).
482 . Fixed bug #74558 (Can't rebind closure returned by Closure::fromCallable()).
774 . Fixed bug #79778 (Assertion failure if dumping closure with unresolved
H A DUPGRADING409 ReflectionMethod::getClosure() and closure rebinding is deprecated. Doing
412 . Unbinding $this of a non-static closure that uses $this is deprecated.
/PHP-7.4/Zend/tests/
H A Dbug81626.phpt13 $closure = Closure::fromCallable([TestClass::class, 'foo']);
14 var_dump($closure());
H A Dbug70630.phpt10 Warning: Cannot rebind scope of closure created from function in %s on line %d
H A Dbug70685.phpt21 Warning: Cannot rebind scope of closure created from method in %s on line %d
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 Dbug79778.phpt2 Bug #79778: Assertion failure if dumping closure with unresolved static variable
H A Dbug79657.phpt39 #1 %s(%d): {closure}()
H A Dbug60909_1.phpt16 #0 %sbug60909_1.php(8): {closure}(2, 'require(notfoun...', '%s', 8, Array)
H A Dclosure_write_prop.phpt2 Cannot write to closure properties
/PHP-7.4/Zend/
H A Dzend_closures.c124 zend_closure *closure; in ZEND_METHOD() local
192 GC_DELREF(&closure->std); in ZEND_METHOD()
205 zend_closure *closure; in ZEND_METHOD() local
414 return &closure->func; in zend_get_closure_method_def()
491 zend_closure *closure; in zend_closure_new() local
509 closure->func.common.scope, closure->called_scope, &closure->this_ptr); in zend_closure_clone()
606 *table = Z_TYPE(closure->this_ptr) != IS_NULL ? &closure->this_ptr : NULL; in zend_closure_get_gc()
627 ZEND_ARG_INFO(0, closure)
689 zend_closure *closure; in zend_create_closure() local
756 closure->orig_internal_handler = closure->func.internal_function.handler; in zend_create_closure()
[all …]
H A Dzend_vm_execute.h20413 zval *closure, *var; in ZEND_BIND_LEXICAL_SPEC_TMP_CV_HANDLER() local
20415 closure = _get_zval_ptr_tmp(opline->op1.var, &free_op1 EXECUTE_DATA_CC); in ZEND_BIND_LEXICAL_SPEC_TMP_CV_HANDLER()
20437 zend_closure_bind_var_ex(closure, in ZEND_BIND_LEXICAL_SPEC_TMP_CV_HANDLER()
H A Dzend_vm_def.h8393 zval *closure, *var; variable
8395 closure = GET_OP1_ZVAL_PTR(BP_VAR_R);
8417 zend_closure_bind_var_ex(closure,
H A Dzend_compile.c5536 static void zend_compile_closure_binding(znode *closure, zend_op_array *op_array, zend_ast *uses_as… in zend_compile_closure_binding() argument
5572 opline = zend_emit_op(NULL, ZEND_BIND_LEXICAL, closure, NULL); in zend_compile_closure_binding()
5656 closure_info *info, znode *closure, zend_op_array *op_array) in compile_implicit_lexical_binds() argument
5675 opline = zend_emit_op(NULL, ZEND_BIND_LEXICAL, closure, NULL); in compile_implicit_lexical_binds()
/PHP-7.4/ext/reflection/
H A Dphp_reflection.c493 zend_function *closure; in _class_string() local
498 mptr = closure; in _class_string()
500 closure = NULL; in _class_string()
505 _free_function(closure); in _class_string()
1500 zval *closure = NULL; in ZEND_METHOD() local
1510 Z_ADDREF_P(closure); in ZEND_METHOD()
1545 if (closure) { in ZEND_METHOD()
1546 ZVAL_OBJ(&intern->obj, Z_OBJ_P(closure)); in ZEND_METHOD()
2179 zval closure; in ZEND_METHOD() local
4211 if (closure) { in ZEND_METHOD()
[all …]
/PHP-7.4/ext/ffi/tests/
H A Dbug79177.phpt37 #0 %s(%d): {closure}()
/PHP-7.4/ext/standard/tests/serialize/
H A Dbug30234.phpt32 {closure}(autoload_interface)
33 {closure}(Autoload_Implements)
/PHP-7.4/ext/standard/tests/file/
H A D007_basic.phpt54 // confirm the closure, using ftell() and feof(), expect, false
81 // confirm the closure, using ftell() and feof(), expect, false
/PHP-7.4/ext/standard/tests/array/
H A Darray_walk_closure.phpt2 array_walk() closure tests
125 closure with array
141 closure with use
157 closure with object
205 closure and exception
210 string(9) "{closure}"
H A Darray_map_variation10.phpt67 Exception: Too few arguments to function {closure}(), 1 passed and exactly 2 expected
/PHP-7.4/ext/spl/tests/
H A Dspl_autoload_013.phpt5 $closure = function($class) {
22 spl_autoload_register($closure);
H A Dspl_autoload_014.phpt5 $closure = function($class) {
6 echo "closure called with class $class\n";
29 spl_autoload_register($closure);
35 spl_autoload_unregister($closure);
43 closure called with class TestX
/PHP-7.4/ext/spl/
H A Dphp_spl.c372 zval closure; member
387 if (!Z_ISUNDEF(alfi->closure)) { in autoload_func_info_dtor()
388 zval_ptr_dtor(&alfi->closure); in autoload_func_info_dtor()
587 ZVAL_UNDEF(&alfi.closure); in PHP_FUNCTION()
599 if (!Z_ISUNDEF(alfi.closure)) { in PHP_FUNCTION()
600 Z_DELREF_P(&alfi.closure); in PHP_FUNCTION()
628 ZVAL_UNDEF(&spl_alfi.closure); in PHP_FUNCTION()
649 if (!Z_ISUNDEF(alfi.closure)) { in PHP_FUNCTION()
650 Z_DELREF(alfi.closure); in PHP_FUNCTION()
787 if (!Z_ISUNDEF(alfi->closure)) { in PHP_FUNCTION()
[all …]
/PHP-7.4/ext/reflection/tests/
H A Dbug74673.phpt24 #0 [internal function]: {closure}(2, 'Use of undefine...', %s, %d, Array)
H A Dclosures_001.phpt6 $closure = function($a, $b = 0) { };
8 $ro = new ReflectionObject($closure);
22 $rm = new ReflectionMethod($closure, '__invoke');
29 $rp = new ReflectionParameter(array($closure, '__invoke'), 0);
31 $rp = new ReflectionParameter(array($closure, '__invoke'), 1);
33 $rp = new ReflectionParameter(array($closure, '__invoke'), 'a');
35 $rp = new ReflectionParameter(array($closure, '__invoke'), 'b');
40 $rp = new ReflectionParameter($closure, 0);
42 $rp = new ReflectionParameter($closure, 1);
44 $rp = new ReflectionParameter($closure, 'a');
[all …]

Completed in 284 milliseconds

123456