Lines Matching defs:scope

455 		zend_error(E_WARNING, "func_num_args():  Called from the global scope - no function context");
487 zend_error(E_WARNING, "func_get_arg(): Called from the global scope - no function context");
524 zend_error(E_WARNING, "func_get_args(): Called from the global scope - no function context");
964 zend_class_entry *scope = zend_get_executed_scope();
966 if (scope) {
967 RETURN_STR_COPY(scope->name);
992 zend_class_entry *scope = zend_get_executed_scope();
993 if (!scope) {
1002 Retrieves the parent class name for object or class or current scope or false if not in a scope. */
1104 static void add_class_vars(zend_class_entry *scope, zend_class_entry *ce, int statics, zval *return_value)
1112 !zend_check_protected(prop_info->ce, scope)) ||
1114 prop_info->ce != scope)) {
1155 zend_class_entry *ce, *scope;
1171 scope = zend_get_executed_scope();
1172 add_class_vars(scope, ce, 0, return_value);
1173 add_class_vars(scope, ce, 1, return_value);
1300 zend_class_entry *scope;
1319 scope = zend_get_executed_scope();
1324 || (scope &&
1326 zend_check_protected(mptr->common.scope, scope))
1328 scope == mptr->common.scope)))
1333 ZVAL_STR_COPY(&method_name, zend_find_alias_name(mptr->common.scope, key));
1376 * TODO: Should we use EG(scope) for the object case instead? */
1378 || !(func->common.fn_flags & ZEND_ACC_PRIVATE) || func->common.scope == ce);
1387 RETVAL_BOOL(func->common.scope == zend_ce_closure
1837 Returns an associative array of names and values of all currently defined variable names (variables in the current scope) */
2273 if (func->common.scope && func->common.scope->trait_aliases) {
2274 zend_function_name = zend_resolve_method_name(object ? object->ce : func->common.scope, func);
2290 if (func->common.scope) {
2291 class_name = func->common.scope->name;
2299 } else if (func->common.scope) {
2300 class_name = func->common.scope->name;
2339 * you're in the top-scope */
2356 && !func->common.scope
2499 function_name = (func->common.scope &&
2500 func->common.scope->trait_aliases) ?
2502 (object ? object->ce : func->common.scope), func) :
2514 if (func->common.scope) {
2515 ZVAL_STR_COPY(&tmp, func->common.scope->name);
2530 } else if (func->common.scope) {
2531 ZVAL_STR_COPY(&tmp, func->common.scope->name);
2572 * you're in the top-scope */