/PHP-7.4/ |
H A D | NEWS | 713 . Fixed bug #79919 (Stack use-after-scope in define()). (cmb) 826 . Fixed bug #79683 (Fake reflection scope affects __toString()). (Nikita)
|
H A D | .gdbinit | 55 variables of that scope. If no parameter is used it will use 56 current_execute_data for scope. 68 if $func->common.scope 69 printf "%s->", $func->common.scope->name->val 74 if $func->common.scope 75 printf "%s::", $func->common.scope->name->val
|
/PHP-7.4/Zend/ |
H A D | zend_closures.c | 99 if (scope && scope != func->common.scope && scope->type == ZEND_INTERNAL_CLASS) { in zend_valid_closure_binding() 102 ZSTR_VAL(scope->name)); in zend_valid_closure_binding() 106 if (is_fake_closure && scope != func->common.scope) { in zend_valid_closure_binding() 320 call.scope = mptr->common.scope; in zend_create_closure_from_callable() 715 || func->common.scope != scope in zend_create_closure() 722 && (func->common.scope == scope || in zend_create_closure() 726 if (func->common.scope != scope) { in zend_create_closure() 727 func->common.scope = scope; in zend_create_closure() 762 scope = NULL; in zend_create_closure() 769 closure->func.common.scope = scope; in zend_create_closure() [all …]
|
H A D | zend_vm_execute.h | 3947 scope = EX(func)->op_array.scope; in ZEND_CLONE_SPEC_CONST_HANDLER() 3948 if (clone->common.scope != scope) { in ZEND_CLONE_SPEC_CONST_HANDLER() 6121 scope = EX(func)->op_array.scope; in ZEND_FETCH_CLASS_CONSTANT_SPEC_CONST_CONST_HANDLER() 13688 scope = EX(func)->op_array.scope; in ZEND_CLONE_SPEC_TMPVAR_HANDLER() 13689 if (clone->common.scope != scope) { in ZEND_CLONE_SPEC_TMPVAR_HANDLER() 23949 scope = EX(func)->op_array.scope; in ZEND_FETCH_CLASS_CONSTANT_SPEC_VAR_CONST_HANDLER() 30401 scope = EX(func)->op_array.scope; in ZEND_CLONE_SPEC_UNUSED_HANDLER() 30402 if (clone->common.scope != scope) { in ZEND_CLONE_SPEC_UNUSED_HANDLER() 30426 scope = EX(func)->op_array.scope; in ZEND_FETCH_CLASS_NAME_SPEC_UNUSED_HANDLER() 31991 scope = EX(func)->op_array.scope; in ZEND_FETCH_CLASS_CONSTANT_SPEC_UNUSED_CONST_HANDLER() [all …]
|
H A D | zend_vm_def.h | 5037 EX(call)->func->common.scope ? ZSTR_VAL(EX(call)->func->common.scope->name) : "", 5514 zend_class_entry *ce, *scope; variable 5558 scope = EX(func)->op_array.scope; 5559 if (clone->common.scope != scope) { 5562 zend_wrong_clone_call(clone, scope); 5594 zend_class_entry *ce, *scope; variable 5636 scope = EX(func)->op_array.scope; 6014 new_op_array->scope = EX(func)->op_array.scope; 8222 zend_class_entry *called_scope, *scope; variable 8227 scope = EX(func)->op_array.scope; [all …]
|
H A D | zend_API.c | 2167 if (scope) { in zend_register_functions() 2182 internal_function->scope = scope; in zend_register_functions() 2236 if (scope) { in zend_register_functions() 2250 if (scope && (scope->ce_flags & ZEND_ACC_INTERFACE)) { in zend_register_functions() 2316 if (scope) { in zend_register_functions() 2370 if (scope) { in zend_register_functions() 2386 if (scope) { in zend_register_functions() 2972 scope = ex ? ex->func->common.scope : NULL; in zend_is_callable_check_class() 3129 && priv_fbc->common.scope == scope) { in zend_is_callable_check_func() 3141 if (fcc->function_handler->common.scope != scope) { in zend_is_callable_check_func() [all …]
|
H A D | zend_object_handlers.c | 345 return scope && in is_protected_compatible_scope() 346 (is_derived_class(ce, scope) || is_derived_class(scope, ce)); in is_protected_compatible_scope() 355 if (scope != ce && scope && is_derived_class(ce, scope)) { in zend_get_parent_private_property() 1215 if (scope != ce && scope && is_derived_class(ce, scope)) { in zend_get_parent_private_method() 1220 && fbc->common.scope == scope) { in zend_get_parent_private_method() 1252 scope = scope->parent; in zend_check_protected() 1286 func->scope = fbc->common.scope; in zend_get_call_trampoline_func() 1358 if (fbc->common.scope != scope) { in zend_std_get_method() 1454 if (UNEXPECTED(fbc->common.scope != scope)) { in zend_std_get_static_method() 1580 if (scope) { in zend_bad_constructor_call() [all …]
|
H A D | zend_execute.c | 718 if (zf->common.scope) { in zend_verify_type_error_common() 1149 EX(func)->common.scope ? ZSTR_VAL(EX(func)->common.scope->name) : "", in zend_missing_arg_error() 1150 EX(func)->common.scope ? "::" : "", in zend_missing_arg_error() 1159 EX(func)->common.scope ? ZSTR_VAL(EX(func)->common.scope->name) : "", in zend_missing_arg_error() 1160 EX(func)->common.scope ? "::" : "", in zend_missing_arg_error() 1205 if (zf->common.scope) { in zend_verify_void_return_error() 1207 fclass = ZSTR_VAL(zf->common.scope->name); in zend_verify_void_return_error() 1547 fbc->common.scope ? ZSTR_VAL(fbc->common.scope->name) : "", in zend_deprecated_function() 1548 fbc->common.scope ? "::" : "", in zend_deprecated_function() 2046 func->common.scope ? ZSTR_VAL(func->common.scope->name) : "", in zend_param_must_be_ref() [all …]
|
H A D | zend_compile.c | 1438 static zend_bool zend_verify_ct_const_access(zend_class_constant *c, zend_class_entry *scope) in zend_verify_ct_const_access() argument 1443 return c->ce == scope; in zend_verify_ct_const_access() 1447 if (ce == scope) { in zend_verify_ct_const_access() 4024 || !(fbc->common.scope->ce_flags & ZEND_ACC_LINKED) in zend_compile_static_call() 4125 if (CG(active_op_array)->scope) { in zend_compile_static_var_common() 4126 CG(active_op_array)->scope->ce_flags |= ZEND_HAS_STATIC_IN_METHODS; in zend_compile_static_var_common() 5756 op_array->scope = ce; in zend_begin_method_decl() 6955 if (op_array && ce && !op_array->scope && !(op_array->fn_flags & ZEND_ACC_CLOSURE)) { in zend_try_ct_eval_magic_const() 6959 if (op_array->scope) { in zend_try_ct_eval_magic_const() 6961 ZSTR_VAL(op_array->scope->name), ZSTR_LEN(op_array->scope->name), in zend_try_ct_eval_magic_const()
|
H A D | zend_execute_API.c | 551 return ex->func->common.scope; in zend_get_executed_scope() 744 func->common.scope ? ZSTR_VAL(func->common.scope->name) : "", in zend_call_function() 745 func->common.scope ? "::" : "", in zend_call_function() 772 func->common.scope ? ZSTR_VAL(func->common.scope->name) : "", in zend_call_function() 773 func->common.scope ? "::" : "", in zend_call_function() 1372 zend_class_entry *ce, *scope; in zend_fetch_class() local 1379 if (UNEXPECTED(!scope)) { in zend_fetch_class() 1382 return scope; in zend_fetch_class() 1385 if (UNEXPECTED(!scope)) { in zend_fetch_class() 1389 if (UNEXPECTED(!scope->parent)) { in zend_fetch_class() [all …]
|
/PHP-7.4/ext/spl/ |
H A D | spl_fixedarray.c | 255 if (funcs_ptr->zf_rewind->common.scope != parent) { in spl_fixedarray_object_new_ex() 258 if (funcs_ptr->zf_valid->common.scope != parent) { in spl_fixedarray_object_new_ex() 261 if (funcs_ptr->zf_key->common.scope != parent) { in spl_fixedarray_object_new_ex() 264 if (funcs_ptr->zf_current->common.scope != parent) { in spl_fixedarray_object_new_ex() 267 if (funcs_ptr->zf_next->common.scope != parent) { in spl_fixedarray_object_new_ex() 272 if (intern->fptr_offset_get->common.scope == parent) { in spl_fixedarray_object_new_ex() 276 if (intern->fptr_offset_set->common.scope == parent) { in spl_fixedarray_object_new_ex() 280 if (intern->fptr_offset_has->common.scope == parent) { in spl_fixedarray_object_new_ex() 284 if (intern->fptr_offset_del->common.scope == parent) { in spl_fixedarray_object_new_ex() 288 if (intern->fptr_count->common.scope == parent) { in spl_fixedarray_object_new_ex()
|
H A D | spl_directory.c | 466 if (ce->constructor->common.scope != spl_ce_SplFileInfo) { in spl_filesystem_object_create_info() 511 if (ce->constructor->common.scope != spl_ce_SplFileInfo) { in spl_filesystem_object_create_type() 535 if (ce->constructor->common.scope != spl_ce_SplFileObject) { in spl_filesystem_object_create_type() 2161 …->flags, SPL_FILE_OBJECT_READ_CSV) || intern->u.file.func_getCurr->common.scope != spl_ce_SplFileO… in spl_filesystem_file_read_line_ex()
|
H A D | spl_array.c | 222 if (intern->fptr_offset_get->common.scope == parent) { in spl_array_object_new_ex() 226 if (intern->fptr_offset_set->common.scope == parent) { in spl_array_object_new_ex() 230 if (intern->fptr_offset_has->common.scope == parent) { in spl_array_object_new_ex() 234 if (intern->fptr_offset_del->common.scope == parent) { in spl_array_object_new_ex() 238 if (intern->fptr_count->common.scope == parent) { in spl_array_object_new_ex() 255 …if (funcs_ptr->zf_rewind->common.scope != parent) intern->ar_flags |= SPL_ARRAY_OVERLOADED_REWIND; in spl_array_object_new_ex() 256 … if (funcs_ptr->zf_valid->common.scope != parent) intern->ar_flags |= SPL_ARRAY_OVERLOADED_VALID; in spl_array_object_new_ex() 257 if (funcs_ptr->zf_key->common.scope != parent) intern->ar_flags |= SPL_ARRAY_OVERLOADED_KEY; in spl_array_object_new_ex() 258 …if (funcs_ptr->zf_current->common.scope != parent) intern->ar_flags |= SPL_ARRAY_OVERLOADED_CURREN… in spl_array_object_new_ex() 259 if (funcs_ptr->zf_next->common.scope != parent) intern->ar_flags |= SPL_ARRAY_OVERLOADED_NEXT; in spl_array_object_new_ex()
|
/PHP-7.4/ext/opcache/ |
H A D | ZendAccelerator.c | 3839 && function->common.scope == ce) { in preload_link() 4073 zend_class_entry *scope = op_array->scope; in preload_fix_trait_methods() local 4078 op_array->scope = scope; in preload_fix_trait_methods()
|
/PHP-7.4/ext/opcache/Optimizer/ |
H A D | zend_func_info.c | 1636 …if (!call_info->callee_func->common.scope && (zv = zend_hash_find_ex(&func_info, Z_STR_P(CRT_CONST… in zend_get_func_info()
|
H A D | zend_inference.c | 2313 && (!scope || (scope->ce_flags & ZEND_ACC_LINKED))) { in lookup_prop_info() 2315 EG(fake_scope) = scope; in lookup_prop_info() 2327 ((prop_info->ce == scope) || in lookup_prop_info() 2328 (!scope && (prop_info->flags & ZEND_ACC_PUBLIC))) in lookup_prop_info() 2342 ce = op_array->scope; in zend_fetch_prop_info() 2349 op_array->scope); in zend_fetch_prop_info() 2370 ce = op_array->scope; in zend_fetch_static_prop_info() 2373 if (op_array->scope && (op_array->scope->ce_flags & ZEND_ACC_LINKED)) { in zend_fetch_static_prop_info() 2374 ce = op_array->scope->parent; in zend_fetch_static_prop_info() 3200 if (op_array->scope) { in zend_update_type_info() [all …]
|
H A D | zend_optimizer.c | 799 } else if (opline->op1_type == IS_UNUSED && op_array->scope in get_class_entry_from_op1() 800 && !(op_array->scope->ce_flags & ZEND_ACC_TRAIT) in get_class_entry_from_op1() 802 return op_array->scope; in get_class_entry_from_op1() 856 zend_bool same_scope = fbc->common.scope == op_array->scope; in zend_optimizer_get_called_func() 867 && op_array->scope && !(op_array->scope->ce_flags & ZEND_ACC_TRAIT)) { in zend_optimizer_get_called_func() 870 &op_array->scope->function_table, method_name); in zend_optimizer_get_called_func() 874 zend_bool same_scope = fbc->common.scope == op_array->scope; in zend_optimizer_get_called_func() 1361 if (op_array->scope == ce in zend_optimize_script() 1477 if (op_array->scope == ce in zend_optimize_script() 1493 zend_hash_find_ptr(&op_array->scope->function_table, name); in zend_optimize_script() [all …]
|
H A D | ssa_integrity.c | 96 op_array->scope ? ZSTR_VAL(op_array->scope->name) : "", \
|
/PHP-7.4/ext/odbc/ |
H A D | php_odbc.c | 291 ZEND_ARG_INFO(0, scope) 3722 SQLUSMALLINT type, scope, nullable; in PHP_FUNCTION() local 3731 scope = (SQLUSMALLINT) vscope; in PHP_FUNCTION() 3758 scope, in PHP_FUNCTION()
|
/PHP-7.4/ext/simplexml/ |
H A D | simplexml.c | 2131 if (fptr_count->common.scope == parent) { in php_sxe_find_fptr_count()
|
/PHP-7.4/ext/reflection/ |
H A D | php_reflection.c | 745 if (scope && fptr->common.scope) { in _function_string() 746 if (fptr->common.scope != scope) { in _function_string() 751 if (fptr->common.scope != overwrites->common.scope) { in _function_string() 779 if (fptr->common.scope) { in _function_string() 1138 intern->ce = fptr->common.scope; in reflection_parameter_factory() 1212 (method->common.scope && method->common.scope->trait_aliases) in reflection_method_factory() 2274 ce = fptr->common.scope; in ZEND_METHOD() 2476 if (!param->fptr->common.scope) { in ZEND_METHOD() 2496 if (param->fptr->common.scope) { in ZEND_METHOD() 3047 zend_create_fake_closure(return_value, mptr, mptr->common.scope, mptr->common.scope, NULL); in ZEND_METHOD() [all …]
|
/PHP-7.4/Zend/tests/ |
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 | 97 foreach ($bindings as list($obj, $scope)) { 99 $scopeStr = $scope ? "$scope::class" : "null"; 102 $ret = $c->bindTo($obj, $scope); 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 …]
|
/PHP-7.4/ext/zend_test/ |
H A D | test.c | 151 fptr->scope = (*object)->ce; in zend_test_class_method_get() 167 fptr->scope = ce; in zend_test_class_static_method_get()
|