Lines Matching refs:scope

343 …r_inline int is_protected_compatible_scope(zend_class_entry *ce, zend_class_entry *scope) /* {{{ */  in is_protected_compatible_scope()  argument
345 return scope && in is_protected_compatible_scope()
346 (is_derived_class(ce, scope) || is_derived_class(scope, ce)); in is_protected_compatible_scope()
350 …ne zend_property_info *zend_get_parent_private_property(zend_class_entry *scope, zend_class_entry … in zend_get_parent_private_property() argument
355 if (scope != ce && scope && is_derived_class(ce, scope)) { in zend_get_parent_private_property()
356 zv = zend_hash_find(&scope->properties_info, member); in zend_get_parent_private_property()
360 && prop_info->ce == scope) { in zend_get_parent_private_property()
386 zend_class_entry *scope; in zend_get_property_offset() local
415 scope = EG(fake_scope); in zend_get_property_offset()
417 scope = zend_get_executed_scope(); in zend_get_property_offset()
420 if (property_info->ce != scope) { in zend_get_property_offset()
422 zend_property_info *p = zend_get_parent_private_property(scope, ce, member); in zend_get_property_offset()
449 if (UNEXPECTED(!is_protected_compatible_scope(property_info->ce, scope))) { in zend_get_property_offset()
492 zend_class_entry *scope; in zend_get_property_info() local
511 scope = EG(fake_scope); in zend_get_property_info()
513 scope = zend_get_executed_scope(); in zend_get_property_info()
515 if (property_info->ce != scope) { in zend_get_property_info()
517 zend_property_info *p = zend_get_parent_private_property(scope, ce, member); in zend_get_property_info()
540 if (UNEXPECTED(!is_protected_compatible_scope(property_info->ce, scope))) { in zend_get_property_info()
1210 static zend_never_inline zend_function *zend_get_parent_private_method(zend_class_entry *scope, zen… in zend_get_parent_private_method() argument
1215 if (scope != ce && scope && is_derived_class(ce, scope)) { in zend_get_parent_private_method()
1216 func = zend_hash_find(&scope->function_table, function_name); in zend_get_parent_private_method()
1220 && fbc->common.scope == scope) { in zend_get_parent_private_method()
1231 ZEND_API int zend_check_protected(zend_class_entry *ce, zend_class_entry *scope) /* {{{ */ in zend_check_protected() argument
1239 if (fbc_scope==scope) { in zend_check_protected()
1248 while (scope) { in zend_check_protected()
1249 if (scope==ce) { in zend_check_protected()
1252 scope = scope->parent; in zend_check_protected()
1286 func->scope = fbc->common.scope; in zend_get_call_trampoline_func()
1316 …nd_bad_method_call(zend_function *fbc, zend_string *method_name, zend_class_entry *scope) /* {{{ */ in zend_bad_method_call() argument
1318 …ommon.fn_flags), ZEND_FN_SCOPE_NAME(fbc), ZSTR_VAL(method_name), scope ? ZSTR_VAL(scope->name) : "… in zend_bad_method_call()
1328 zend_class_entry *scope; in zend_std_get_method() local
1356 scope = zend_get_executed_scope(); in zend_std_get_method()
1358 if (fbc->common.scope != scope) { in zend_std_get_method()
1360 zend_function *updated_fbc = zend_get_parent_private_method(scope, zobj->ce, lc_method_name); in zend_std_get_method()
1370 || UNEXPECTED(!zend_check_protected(zend_get_function_root_class(fbc), scope))) { in zend_std_get_method()
1374 zend_bad_method_call(fbc, method_name, scope); in zend_std_get_method()
1400 zend_class_entry *scope; in zend_std_get_static_method() local
1453 scope = zend_get_executed_scope(); in zend_std_get_static_method()
1454 if (UNEXPECTED(fbc->common.scope != scope)) { in zend_std_get_static_method()
1456 || UNEXPECTED(!zend_check_protected(zend_get_function_root_class(fbc), scope))) { in zend_std_get_static_method()
1460 zend_bad_method_call(fbc, function_name, scope); in zend_std_get_static_method()
1502 zend_class_entry *scope; in zend_std_get_static_property_with_info() local
1512 scope = EG(fake_scope); in zend_std_get_static_property_with_info()
1514 scope = zend_get_executed_scope(); in zend_std_get_static_property_with_info()
1516 if (property_info->ce != scope) { in zend_std_get_static_property_with_info()
1518 || UNEXPECTED(!is_protected_compatible_scope(property_info->ce, scope))) { in zend_std_get_static_property_with_info()
1578 …nline void zend_bad_constructor_call(zend_function *constructor, zend_class_entry *scope) /* {{{ */ in zend_bad_constructor_call() argument
1580 if (scope) { in zend_bad_constructor_call()
1581 …fn_flags), ZSTR_VAL(constructor->common.scope->name), ZSTR_VAL(constructor->common.function_name),… in zend_bad_constructor_call()
1583 …bility_string(constructor->common.fn_flags), ZSTR_VAL(constructor->common.scope->name), ZSTR_VAL(c… in zend_bad_constructor_call()
1591 zend_class_entry *scope; in zend_std_get_constructor() local
1596 scope = EG(fake_scope); in zend_std_get_constructor()
1598 scope = zend_get_executed_scope(); in zend_std_get_constructor()
1600 if (UNEXPECTED(constructor->common.scope != scope)) { in zend_std_get_constructor()
1602 || UNEXPECTED(!zend_check_protected(zend_get_function_root_class(constructor), scope))) { in zend_std_get_constructor()
1603 zend_bad_constructor_call(constructor, scope); in zend_std_get_constructor()