Lines Matching refs:scope
226 …r_inline int is_protected_compatible_scope(zend_class_entry *ce, zend_class_entry *scope) /* {{{ */ in is_protected_compatible_scope() argument
228 return scope && in is_protected_compatible_scope()
229 (is_derived_class(ce, scope) || is_derived_class(scope, ce)); in is_protected_compatible_scope()
233 …ne zend_property_info *zend_get_parent_private_property(zend_class_entry *scope, zend_class_entry … in zend_get_parent_private_property() argument
238 if (scope != ce && scope && is_derived_class(ce, scope)) { in zend_get_parent_private_property()
239 zv = zend_hash_find(&scope->properties_info, member); in zend_get_parent_private_property()
243 && prop_info->ce == scope) { in zend_get_parent_private_property()
275 zend_class_entry *scope; in zend_get_property_offset() local
304 scope = EG(fake_scope); in zend_get_property_offset()
306 scope = zend_get_executed_scope(); in zend_get_property_offset()
309 if (property_info->ce != scope) { in zend_get_property_offset()
311 zend_property_info *p = zend_get_parent_private_property(scope, ce, member); in zend_get_property_offset()
338 if (UNEXPECTED(!is_protected_compatible_scope(property_info->ce, scope))) { in zend_get_property_offset()
381 zend_class_entry *scope; in zend_get_property_info() local
400 scope = EG(fake_scope); in zend_get_property_info()
402 scope = zend_get_executed_scope(); in zend_get_property_info()
404 if (property_info->ce != scope) { in zend_get_property_info()
406 zend_property_info *p = zend_get_parent_private_property(scope, ce, member); in zend_get_property_info()
429 if (UNEXPECTED(!is_protected_compatible_scope(property_info->ce, scope))) { in zend_get_property_info()
1068 static zend_never_inline zend_function *zend_get_parent_private_method(zend_class_entry *scope, zen… in zend_get_parent_private_method() argument
1073 if (scope != ce && scope && is_derived_class(ce, scope)) { in zend_get_parent_private_method()
1074 func = zend_hash_find(&scope->function_table, function_name); in zend_get_parent_private_method()
1078 && fbc->common.scope == scope) { in zend_get_parent_private_method()
1089 ZEND_API int zend_check_protected(zend_class_entry *ce, zend_class_entry *scope) /* {{{ */ in zend_check_protected() argument
1097 if (fbc_scope==scope) { in zend_check_protected()
1106 while (scope) { in zend_check_protected()
1107 if (scope==ce) { in zend_check_protected()
1110 scope = scope->parent; in zend_check_protected()
1145 func->scope = fbc->common.scope; in zend_get_call_trampoline_func()
1175 …nd_bad_method_call(zend_function *fbc, zend_string *method_name, zend_class_entry *scope) /* {{{ */ in zend_bad_method_call() argument
1179 scope ? "scope " : "global scope", in zend_bad_method_call()
1180 scope ? ZSTR_VAL(scope->name) : "" in zend_bad_method_call()
1188 ZSTR_VAL(fbc->common.scope->name), ZSTR_VAL(fbc->common.function_name)); in zend_abstract_method_call()
1198 zend_class_entry *scope; in zend_std_get_method() local
1226 scope = zend_get_executed_scope(); in zend_std_get_method()
1228 if (fbc->common.scope != scope) { in zend_std_get_method()
1230 zend_function *updated_fbc = zend_get_parent_private_method(scope, zobj->ce, lc_method_name); in zend_std_get_method()
1240 || UNEXPECTED(!zend_check_protected(zend_get_function_root_class(fbc), scope))) { in zend_std_get_method()
1244 zend_bad_method_call(fbc, method_name, scope); in zend_std_get_method()
1274 zend_class_entry *scope; in zend_std_get_static_method() local
1323 scope = zend_get_executed_scope(); in zend_std_get_static_method()
1324 if (UNEXPECTED(fbc->common.scope != scope)) { in zend_std_get_static_method()
1326 || UNEXPECTED(!zend_check_protected(zend_get_function_root_class(fbc), scope))) { in zend_std_get_static_method()
1330 zend_bad_method_call(fbc, function_name, scope); in zend_std_get_static_method()
1377 zend_class_entry *scope; in zend_std_get_static_property_with_info() local
1387 scope = EG(fake_scope); in zend_std_get_static_property_with_info()
1389 scope = zend_get_executed_scope(); in zend_std_get_static_property_with_info()
1391 if (property_info->ce != scope) { in zend_std_get_static_property_with_info()
1393 || UNEXPECTED(!is_protected_compatible_scope(property_info->ce, scope))) { in zend_std_get_static_property_with_info()
1453 …nline void zend_bad_constructor_call(zend_function *constructor, zend_class_entry *scope) /* {{{ */ in zend_bad_constructor_call() argument
1455 if (scope) { in zend_bad_constructor_call()
1457 zend_visibility_string(constructor->common.fn_flags), ZSTR_VAL(constructor->common.scope->name), in zend_bad_constructor_call()
1458 ZSTR_VAL(constructor->common.function_name), ZSTR_VAL(scope->name) in zend_bad_constructor_call()
1461 …bility_string(constructor->common.fn_flags), ZSTR_VAL(constructor->common.scope->name), ZSTR_VAL(c… in zend_bad_constructor_call()
1469 zend_class_entry *scope; in zend_std_get_constructor() local
1474 scope = EG(fake_scope); in zend_std_get_constructor()
1476 scope = zend_get_executed_scope(); in zend_std_get_constructor()
1478 if (UNEXPECTED(constructor->common.scope != scope)) { in zend_std_get_constructor()
1480 || UNEXPECTED(!zend_check_protected(zend_get_function_root_class(constructor), scope))) { in zend_std_get_constructor()
1481 zend_bad_constructor_call(constructor, scope); in zend_std_get_constructor()