/PHP-7.4/ |
H A D | NEWS | 154 . 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 D | UPGRADING | 409 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 D | bug81626.phpt | 13 $closure = Closure::fromCallable([TestClass::class, 'foo']); 14 var_dump($closure());
|
H A D | bug70630.phpt | 10 Warning: Cannot rebind scope of closure created from function in %s on line %d
|
H A D | bug70685.phpt | 21 Warning: Cannot rebind scope of closure created from method in %s on line %d
|
H A D | closure_061.phpt | 121 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 D | bug79778.phpt | 2 Bug #79778: Assertion failure if dumping closure with unresolved static variable
|
H A D | bug79657.phpt | 39 #1 %s(%d): {closure}()
|
H A D | bug60909_1.phpt | 16 #0 %sbug60909_1.php(8): {closure}(2, 'require(notfoun...', '%s', 8, Array)
|
H A D | closure_write_prop.phpt | 2 Cannot write to closure properties
|
/PHP-7.4/Zend/ |
H A D | zend_closures.c | 124 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 D | zend_vm_execute.h | 20413 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 D | zend_vm_def.h | 8393 zval *closure, *var; variable 8395 closure = GET_OP1_ZVAL_PTR(BP_VAR_R); 8417 zend_closure_bind_var_ex(closure,
|
H A D | zend_compile.c | 5536 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 D | php_reflection.c | 493 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 D | bug79177.phpt | 37 #0 %s(%d): {closure}()
|
/PHP-7.4/ext/standard/tests/serialize/ |
H A D | bug30234.phpt | 32 {closure}(autoload_interface) 33 {closure}(Autoload_Implements)
|
/PHP-7.4/ext/standard/tests/file/ |
H A D | 007_basic.phpt | 54 // 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 D | array_walk_closure.phpt | 2 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 D | array_map_variation10.phpt | 67 Exception: Too few arguments to function {closure}(), 1 passed and exactly 2 expected
|
/PHP-7.4/ext/spl/tests/ |
H A D | spl_autoload_013.phpt | 5 $closure = function($class) { 22 spl_autoload_register($closure);
|
H A D | spl_autoload_014.phpt | 5 $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 D | php_spl.c | 372 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 D | bug74673.phpt | 24 #0 [internal function]: {closure}(2, 'Use of undefine...', %s, %d, Array)
|
H A D | closures_001.phpt | 6 $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 …]
|