Lines Matching refs:scope

329 	zend_class_entry *scope;  in zend_verify_property_access()  local
335 scope = EG(fake_scope); in zend_verify_property_access()
337 scope = zend_get_executed_scope(); in zend_verify_property_access()
339 return (ce == scope || property_info->ce == scope); in zend_verify_property_access()
342 scope = EG(fake_scope); in zend_verify_property_access()
344 scope = zend_get_executed_scope(); in zend_verify_property_access()
346 return zend_check_protected(property_info->ce, scope); in zend_verify_property_access()
371 zend_class_entry *scope; in zend_get_property_offset() local
408 scope = EG(fake_scope); in zend_get_property_offset()
410 scope = zend_get_executed_scope(); in zend_get_property_offset()
413 if (scope != ce in zend_get_property_offset()
414 && scope in zend_get_property_offset()
415 && is_derived_class(ce, scope) in zend_get_property_offset()
416 && (zv = zend_hash_find(&scope->properties_info, member)) != NULL in zend_get_property_offset()
455 zend_class_entry *scope; in zend_get_property_info() local
487 scope = EG(fake_scope); in zend_get_property_info()
489 scope = zend_get_executed_scope(); in zend_get_property_info()
492 if (scope != ce in zend_get_property_info()
493 && scope in zend_get_property_info()
494 && is_derived_class(ce, scope) in zend_get_property_info()
495 && (zv = zend_hash_find(&scope->properties_info, member)) != NULL in zend_get_property_info()
1063 static zend_always_inline zend_function *zend_get_parent_private(zend_class_entry *scope, zend_clas… in zend_get_parent_private() argument
1070 if (ce == scope) { in zend_get_parent_private()
1074 && fbc->common.scope == scope) { in zend_get_parent_private()
1092 zend_class_entry *scope; in zend_check_private() local
1104 scope = zend_get_executed_scope(); in zend_check_private()
1105 if (fbc->common.scope == ce && scope == ce) { in zend_check_private()
1112 return zend_get_parent_private(scope, ce, function_name) != NULL; in zend_check_private()
1118 ZEND_API int zend_check_protected(zend_class_entry *ce, zend_class_entry *scope) /* {{{ */ in zend_check_protected() argument
1126 if (fbc_scope==scope) { in zend_check_protected()
1135 while (scope) { in zend_check_protected()
1136 if (scope==ce) { in zend_check_protected()
1139 scope = scope->parent; in zend_check_protected()
1169 func->scope = fbc->common.scope; in zend_get_call_trampoline_func()
1200 zend_class_entry *scope = NULL; in zend_std_get_method() local
1230 scope = zend_get_executed_scope(); in zend_std_get_method()
1231 if (fbc->common.scope != scope || zobj->ce != scope) { in zend_std_get_method()
1232 zend_function *updated_fbc = zend_get_parent_private(scope, zobj->ce, lc_method_name); in zend_std_get_method()
1239 scope = zend_get_executed_scope(); in zend_std_get_method()
1240 …ommon.fn_flags), ZEND_FN_SCOPE_NAME(fbc), ZSTR_VAL(method_name), scope ? ZSTR_VAL(scope->name) : "… in zend_std_get_method()
1250 scope = zend_get_executed_scope(); in zend_std_get_method()
1253 zend_function *priv_fbc = zend_get_parent_private(scope, fbc->common.scope, lc_method_name); in zend_std_get_method()
1265 if (UNEXPECTED(!zend_check_protected(zend_get_function_root_class(fbc), scope))) { in zend_std_get_method()
1269 …ommon.fn_flags), ZEND_FN_SCOPE_NAME(fbc), ZSTR_VAL(method_name), scope ? ZSTR_VAL(scope->name) : "… in zend_std_get_method()
1294 zend_class_entry *scope; in zend_std_get_static_method() local
1351 scope = zend_get_executed_scope(); in zend_std_get_static_method()
1352 if (UNEXPECTED(fbc->common.scope != scope)) { in zend_std_get_static_method()
1356 …mon.fn_flags), ZEND_FN_SCOPE_NAME(fbc), ZSTR_VAL(function_name), scope ? ZSTR_VAL(scope->name) : "… in zend_std_get_static_method()
1363 scope = zend_get_executed_scope(); in zend_std_get_static_method()
1364 if (UNEXPECTED(!zend_check_protected(zend_get_function_root_class(fbc), scope))) { in zend_std_get_static_method()
1368 …mon.fn_flags), ZEND_FN_SCOPE_NAME(fbc), ZSTR_VAL(function_name), scope ? ZSTR_VAL(scope->name) : "… in zend_std_get_static_method()
1465 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()
1479 if (scope) { in zend_std_get_constructor()
1480 …ext '%s'", ZSTR_VAL(constructor->common.scope->name), ZSTR_VAL(constructor->common.function_name),… in zend_std_get_constructor()
1483 …l to private %s::%s() from invalid context", ZSTR_VAL(constructor->common.scope->name), ZSTR_VAL(c… in zend_std_get_constructor()
1493 scope = EG(fake_scope); in zend_std_get_constructor()
1495 scope = zend_get_executed_scope(); in zend_std_get_constructor()
1497 if (UNEXPECTED(!zend_check_protected(zend_get_function_root_class(constructor), scope))) { in zend_std_get_constructor()
1498 if (scope) { in zend_std_get_constructor()
1499 …ext '%s'", ZSTR_VAL(constructor->common.scope->name), ZSTR_VAL(constructor->common.function_name),… in zend_std_get_constructor()
1502 …to protected %s::%s() from invalid context", ZSTR_VAL(constructor->common.scope->name), ZSTR_VAL(c… in zend_std_get_constructor()