Home
last modified time | relevance | path

Searched refs:scope (Results 26 – 50 of 235) sorted by relevance

12345678910

/php-src/Zend/tests/
H A Dfunc_get_args.phpt2 Testing func_get_args() throws error when called from the global scope
14 func_get_args() cannot be called from the global scope
H A Dself_class_const_in_unknown_scope.phpt2 Use of self::class inside a constant in an unknown scope
23 Fatal error: Uncaught Error: Cannot use "self" when no class scope is active in %s:%d
H A Daccess_modifiers_008.phpt57 Call to private method A::mp() from scope B2
59 Call to protected method B1::mp() from scope B2
60 Call to protected method B1::mb() from scope B2
H A Dclosure_046.phpt2 Closure 046: Rebinding: preservation of previous scope when "static" given as scope arg (same as cl…
6 /* It's impossible to preserve the previous scope when doing so would break
7 * the invariants that, for non-static closures, having a scope is equivalent
H A Dclosure_call.phpt47 // Ensure ->call calls with scope of passed object
64 Warning: Cannot bind closure to scope of internal class stdClass in %s line %d
H A Dns_061.phpt2 061: use in global scope
/php-src/ext/standard/tests/array/
H A Dcompact_variation2.phpt2 …t compact() function: ensure compact() doesn't pick up variables declared outside of current scope.
5 echo "*** Testing compact() : usage variations - variables outside of current scope ***\n";
21 *** Testing compact() : usage variations - variables outside of current scope ***
/php-src/tests/classes/
H A Dproperty_recreate_protected.phpt22 echo "Unset and recreate a protected property from property's declaring class scope:\n";
33 echo "\nUnset a protected property, and attempt to recreate it outside of scope (expected failure):…
39 Unset and recreate a protected property from property's declaring class scope:
51 Unset a protected property, and attempt to recreate it outside of scope (expected failure):
H A D__call_006.phpt31 echo "\n\n---> Invoke __call via scope resolution operator within instance.\n";
38 echo "\n\n---> Invoke __call via scope resolution operator within child instance.\n";
60 ---> Invoke __call via scope resolution operator within instance.
66 ---> Invoke __call via scope resolution operator within child instance.
H A Dproperty_recreate_private.phpt34 echo "\nUnset superclass's private property, and recreate it as public at global scope:\n";
47 echo "\nUnset a private property, and attempt to recreate at global scope (expecting failure):\n";
67 Unset superclass's private property, and recreate it as public at global scope:
80 Unset a private property, and attempt to recreate at global scope (expecting failure):
H A Dconstants_scope_001.phpt2 ZE2 class constants and scope
24 /* Call the static function and move into the ErrorCodes scope */
/php-src/Zend/tests/attributes/
H A D032_attribute_validation_scope.phpt2 Validation for "Attribute" does not use a scope when evaluating constant ASTs
9 Fatal error: Cannot access "parent" when no class scope is active in %s on line %d
/php-src/sapi/phpdbg/
H A Dphpdbg_print.c69 if (method->common.scope) { in phpdbg_print_function_helper()
70 …phpdbg_writeln("\tInternal %s::%s()", ZSTR_VAL(method->common.scope->name), ZSTR_VAL(method->commo… in phpdbg_print_function_helper()
102 if (ops->scope) { in PHPDBG_PRINT()
103 …phpdbg_notice("Stack in %s::%s() (%d ops)", ZSTR_VAL(ops->scope->name), ZSTR_VAL(ops->function_nam… in PHPDBG_PRINT()
189 zend_class_entry *scope = zend_get_executed_scope(); in PHPDBG_PRINT() local
191 if (scope) { in PHPDBG_PRINT()
195 func_table = &scope->function_table; in PHPDBG_PRINT()
214 (fbc->common.scope) ? "Method" : "Function", in PHPDBG_PRINT()
375 cur->scope = op_array->scope; in phpdbg_print_opline()
/php-src/Zend/
H A Dzend_attributes.c38 void validate_attribute(zend_attribute *attr, uint32_t target, zend_class_entry *scope) in validate_attribute() argument
67 zend_attribute *attr, uint32_t target, zend_class_entry *scope) in validate_allow_dynamic_properties() argument
69 if (scope->ce_flags & ZEND_ACC_TRAIT) { in validate_allow_dynamic_properties()
72 if (scope->ce_flags & ZEND_ACC_INTERFACE) { in validate_allow_dynamic_properties()
75 if (scope->ce_flags & ZEND_ACC_READONLY_CLASS) { in validate_allow_dynamic_properties()
77 ZSTR_VAL(scope->name) in validate_allow_dynamic_properties()
80 scope->ce_flags |= ZEND_ACC_ALLOW_DYNAMIC_PROPERTIES; in validate_allow_dynamic_properties()
195 …sult zend_get_attribute_value(zval *ret, zend_attribute *attr, uint32_t i, zend_class_entry *scope) in zend_get_attribute_value() argument
204 if (SUCCESS != zval_update_constant_ex(ret, scope)) { in zend_get_attribute_value()
H A Dzend_API.c2884 internal_function->scope = scope; in zend_register_functions()
2936 scope ? ZSTR_VAL(scope->name) : "", scope ? "::" : "", ptr->fname); in zend_register_functions()
2957 if (scope) { in zend_register_functions()
2971 if (scope && (scope->ce_flags & ZEND_ACC_INTERFACE)) { in zend_register_functions()
3033 scope ? ZSTR_VAL(scope->name) : "", scope ? "::" : "", ptr->fname); in zend_register_functions()
3112 if (scope) { in zend_register_functions()
3671 if (!scope) { in zend_is_callable_check_class()
3688 if (!scope) { in zend_is_callable_check_class()
3901 && priv_fbc->common.scope == scope) { in zend_is_callable_check_func()
3912 if (fcc->function_handler->common.scope != scope) { in zend_is_callable_check_func()
[all …]
H A Dzend_dtrace.d29 …function__entry(char* function_name, char* request_file, int lineno, char* classname, char* scope);
30 …unction__return(char* function_name, char* request_file, int lineno, char* classname, char* scope);
H A Dzend_constants.c234 ZEND_API bool zend_verify_const_access(zend_class_constant *c, zend_class_entry *scope) /* {{{ */ in zend_verify_const_access() argument
239 return (c->ce == scope); in zend_verify_const_access()
242 return zend_check_protected(c->ce, scope); in zend_verify_const_access()
307 if (UNEXPECTED(!scope)) { in zend_get_class_constant_ex()
311 ce = scope; in zend_get_class_constant_ex()
313 if (UNEXPECTED(!scope)) { in zend_get_class_constant_ex()
316 } else if (UNEXPECTED(!scope->parent)) { in zend_get_class_constant_ex()
320 ce = scope->parent; in zend_get_class_constant_ex()
340 if (!zend_verify_const_access(c, scope)) { in zend_get_class_constant_ex()
389 ZEND_API zval *zend_get_constant_ex(zend_string *cname, zend_class_entry *scope, uint32_t flags) in zend_get_constant_ex() argument
[all …]
H A Dzend_closures.h36 ZEND_API void zend_create_closure(zval *res, zend_function *op_array, zend_class_entry *scope, zend…
37 ZEND_API void zend_create_fake_closure(zval *res, zend_function *op_array, zend_class_entry *scope,…
H A Dzend_ast.c502 zend_class_entry *scope,
510 zend_class_entry *scope, in zend_ast_evaluate_ex() argument
516 if (scope) { in zend_ast_evaluate_ex()
523 if (scope) { in zend_ast_evaluate_ex()
533 zend_class_entry *scope, in zend_ast_evaluate_inner() argument
601 if (scope) { in zend_ast_evaluate_inner()
602 ZVAL_STR_COPY(result, scope->name); in zend_ast_evaluate_inner()
608 if (!scope) { in zend_ast_evaluate_inner()
615 if (!scope->parent) { in zend_ast_evaluate_inner()
849 if (scope) { in zend_ast_evaluate_inner()
[all …]
H A Dzend_execute_API.c684 return ex->func->common.scope; in zend_get_executed_scope()
1069 fn->common.scope ? ZSTR_VAL(fn->common.scope->name) : "", in zend_call_known_function()
1671 zend_class_entry *ce, *scope; in zend_fetch_class() local
1678 if (UNEXPECTED(!scope)) { in zend_fetch_class()
1681 return scope; in zend_fetch_class()
1684 if (UNEXPECTED(!scope)) { in zend_fetch_class()
1691 return scope->parent; in zend_fetch_class()
1723 if (UNEXPECTED(!scope)) { in zend_fetch_class_with_scope()
1726 return scope; in zend_fetch_class_with_scope()
1728 if (UNEXPECTED(!scope)) { in zend_fetch_class_with_scope()
[all …]
H A Dzend_interfaces.c314 if (funcs_ptr->zf_new_iterator->common.scope != class_type) { in zend_implement_aggregate()
361 if (funcs_ptr->zf_rewind->common.scope != class_type && in zend_implement_iterator()
362 funcs_ptr->zf_valid->common.scope != class_type && in zend_implement_iterator()
363 funcs_ptr->zf_key->common.scope != class_type && in zend_implement_iterator()
364 funcs_ptr->zf_current->common.scope != class_type && in zend_implement_iterator()
365 funcs_ptr->zf_next->common.scope != class_type) { in zend_implement_iterator()
496 zend_class_entry *scope = EG(current_execute_data)->func->common.scope; in zend_create_internal_iterator_zval() local
497 ZEND_ASSERT(scope->get_iterator != zend_user_it_get_new_iterator); in zend_create_internal_iterator_zval()
498 zend_object_iterator *iter = scope->get_iterator(Z_OBJCE_P(obj), obj, /* by_ref */ 0); in zend_create_internal_iterator_zval()
/php-src/ext/reflection/tests/
H A Dbug66430.phpt2 Bug #66430: ReflectionFunction::invoke does not invoke closure with object scope
30 echo "scope cl of c(alpha.bravo): ", $reflectionC->getClosureScopeClass()->getName().PHP_EOL;
41 scope cl of c(alpha.bravo): Alpha
/php-src/Zend/tests/constexpr/
H A Dnew_self_parent.phpt38 Cannot access "self" when no class scope is active
39 Cannot access "parent" when current class scope has no parent
/php-src/ext/zend_test/
H A Dobserver.c85 if (execute_data->func->common.scope) { in observer_begin()
86 …2 * ZT_G(observer_nesting_depth), "", ZSTR_VAL(execute_data->func->common.scope->name), ZSTR_VAL(e… in observer_begin()
137 if (execute_data->func->common.scope) { in observer_end()
138 …2 * ZT_G(observer_nesting_depth), "", ZSTR_VAL(execute_data->func->common.scope->name), ZSTR_VAL(e… in observer_end()
151 if (fbc->common.scope) { in observer_show_init()
152 …::%s() -->\n", 2 * ZT_G(observer_nesting_depth), "", ZSTR_VAL(fbc->common.scope->name), ZSTR_VAL(f… in observer_show_init()
169 if (fbc->common.scope) { in observer_show_init_backtrace()
170 …php_printf("%*s%s::%s()\n", indent, "", ZSTR_VAL(fbc->common.scope->name), ZSTR_VAL(fbc->common.fu… in observer_show_init_backtrace()
286 if (fbc->common.scope) { in zend_test_execute_internal()
287 …::%s() -->\n", 2 * ZT_G(observer_nesting_depth), "", ZSTR_VAL(fbc->common.scope->name), ZSTR_VAL(f… in zend_test_execute_internal()
/php-src/ext/standard/tests/general_functions/
H A Dget_defined_vars_basic.phpt49 echo "\n-- Get variables at global scope --\n";
53 echo "TEST FAILED - Global variables missing at global scope\n";
64 -- Get variables at global scope --

Completed in 78 milliseconds

12345678910