Searched refs:scope (Results 1 - 25 of 64) sorted by relevance

123

/PHP_TRUNK/Zend/
H A Dzend_dtrace.d31 probe function__entry(char* function_name, char* request_file, int lineno, char* classname, char* scope);
32 probe function__return(char* function_name, char* request_file, int lineno, char* classname, char* scope);
H A Dzend_constants.h70 ZEND_API zval *zend_get_constant_ex(zend_string *name, zend_class_entry *scope, zend_ulong flags);
H A Dzend_object_handlers.h161 ((fbc)->common.prototype ? (fbc)->common.prototype->common.scope : (fbc)->common.scope)
177 ZEND_API int zend_check_protected(zend_class_entry *ce, zend_class_entry *scope);
H A Dzend_closures.h31 ZEND_API void zend_create_closure(zval *res, zend_function *op_array, zend_class_entry *scope, zend_class_entry *called_scope, zval *this_ptr);
H A Dzend_globals.h164 zend_class_entry *scope; member in struct:_zend_executor_globals
H A Dzend_API.h273 ZEND_API int zend_register_functions(zend_class_entry *scope, const zend_function_entry *functions, HashTable *function_table, int type);
332 ZEND_API void zend_update_property_ex(zend_class_entry *scope, zval *object, zend_string *name, zval *value);
333 ZEND_API void zend_update_property(zend_class_entry *scope, zval *object, const char *name, size_t name_length, zval *value);
334 ZEND_API void zend_update_property_null(zend_class_entry *scope, zval *object, const char *name, size_t name_length);
335 ZEND_API void zend_update_property_bool(zend_class_entry *scope, zval *object, const char *name, size_t name_length, zend_long value);
336 ZEND_API void zend_update_property_long(zend_class_entry *scope, zval *object, const char *name, size_t name_length, zend_long value);
337 ZEND_API void zend_update_property_double(zend_class_entry *scope, zval *object, const char *name, size_t name_length, double value);
338 ZEND_API void zend_update_property_str(zend_class_entry *scope, zval *object, const char *name, size_t name_length, zend_string *value);
339 ZEND_API void zend_update_property_string(zend_class_entry *scope, zval *object, const char *name, size_t name_length, const char *value);
340 ZEND_API void zend_update_property_stringl(zend_class_entry *scope, zva
[all...]
H A Dzend_API.c202 const char *class_name = active_function->common.scope ? ZSTR_VAL(active_function->common.scope->name) : "";
792 const char *class_name = active_function->common.scope
793 ? ZSTR_VAL(active_function->common.scope->name) : "";
872 const char *class_name = active_function->common.scope ? ZSTR_VAL(active_function->common.scope->name) : "";
1008 * Z_OBJ(EG(This)) to NULL when calling an internal function with common.scope == NULL.
1011 zend_bool is_method = EG(current_execute_data)->func->common.scope != NULL;
1095 zend_class_entry *old_scope = EG(scope);
1099 EG(scope)
1151 zend_class_entry **scope = EG(current_execute_data) ? &EG(scope) : &CG(active_class_entry); local
2123 zend_register_functions(zend_class_entry *scope, const zend_function_entry *functions, HashTable *function_table, int type) argument
2880 zend_class_entry *scope; local
3802 zend_update_property_ex(zend_class_entry *scope, zval *object, zend_string *name, zval *value) argument
3819 zend_update_property(zend_class_entry *scope, zval *object, const char *name, size_t name_length, zval *value) argument
3837 zend_update_property_null(zend_class_entry *scope, zval *object, const char *name, size_t name_length) argument
3846 zend_update_property_bool(zend_class_entry *scope, zval *object, const char *name, size_t name_length, zend_long value) argument
3855 zend_update_property_long(zend_class_entry *scope, zval *object, const char *name, size_t name_length, zend_long value) argument
3864 zend_update_property_double(zend_class_entry *scope, zval *object, const char *name, size_t name_length, double value) argument
3873 zend_update_property_str(zend_class_entry *scope, zval *object, const char *name, size_t name_length, zend_string *value) argument
3882 zend_update_property_string(zend_class_entry *scope, zval *object, const char *name, size_t name_length, const char *value) argument
3892 zend_update_property_stringl(zend_class_entry *scope, zval *object, const char *name, size_t name_length, const char *value, size_t value_len) argument
3902 zend_update_static_property(zend_class_entry *scope, const char *name, size_t name_length, zval *value) argument
3941 zend_update_static_property_null(zend_class_entry *scope, const char *name, size_t name_length) argument
3950 zend_update_static_property_bool(zend_class_entry *scope, const char *name, size_t name_length, zend_long value) argument
3959 zend_update_static_property_long(zend_class_entry *scope, const char *name, size_t name_length, zend_long value) argument
3968 zend_update_static_property_double(zend_class_entry *scope, const char *name, size_t name_length, double value) argument
3977 zend_update_static_property_string(zend_class_entry *scope, const char *name, size_t name_length, const char *value) argument
3987 zend_update_static_property_stringl(zend_class_entry *scope, const char *name, size_t name_length, const char *value, size_t value_len) argument
3997 zend_read_property(zend_class_entry *scope, zval *object, const char *name, size_t name_length, zend_bool silent, zval *rv) argument
4017 zend_read_static_property(zend_class_entry *scope, const char *name, size_t name_length, zend_bool silent) argument
[all...]
H A Dzend_ast.c212 ZEND_API int zend_ast_evaluate(zval *result, zend_ast *ast, zend_class_entry *scope) argument
219 if (UNEXPECTED(zend_ast_evaluate(&op1, ast->child[0], scope) != SUCCESS)) {
221 } else if (UNEXPECTED(zend_ast_evaluate(&op2, ast->child[1], scope) != SUCCESS)) {
233 if (UNEXPECTED(zend_ast_evaluate(&op1, ast->child[0], scope) != SUCCESS)) {
235 } else if (UNEXPECTED(zend_ast_evaluate(&op2, ast->child[1], scope) != SUCCESS)) {
248 if (UNEXPECTED(zend_ast_evaluate(&op1, ast->child[0], scope) != SUCCESS)) {
259 if (scope) {
262 if (UNEXPECTED(zval_update_constant_ex(zv, 1, scope) != SUCCESS)) {
271 if (UNEXPECTED(zval_update_constant_ex(result, 1, scope) != SUCCESS)) {
280 if (UNEXPECTED(zend_ast_evaluate(&op1, ast->child[0], scope) !
[all...]
H A Dzend_closures.c73 Call closure, binding to a given object with its class as the scope */
100 !instanceof_function(Z_OBJCE_P(newthis), closure->func.common.scope)) {
101 zend_error(E_WARNING, "Cannot bind function %s::%s to object of class %s", ZSTR_VAL(closure->func.common.scope->name), ZSTR_VAL(closure->func.common.function_name), ZSTR_VAL(Z_OBJCE_P(newthis)->name));
108 if (newobj->ce != closure->func.common.scope && newobj->ce->type == ZEND_INTERNAL_CLASS) {
126 /* use scope of passed object */
127 my_function.common.scope = Z_OBJCE_P(newthis);
130 /* Runtime cache relies on bound scope to be immutable, hence we need a separate rt cache in case scope changed */
131 if (ZEND_USER_CODE(my_function.type) && closure->func.common.scope != Z_OBJCE_P(newthis)) {
140 if (ZEND_USER_CODE(my_function.type) && closure->func.common.scope !
510 zend_create_closure(zval *res, zend_function *func, zend_class_entry *scope, zend_class_entry *called_scope, zval *this_ptr) argument
[all...]
H A Dzend_constants.c296 ZEND_API zval *zend_get_constant_ex(zend_string *cname, zend_class_entry *scope, zend_ulong flags) argument
324 if (!scope) {
326 scope = EG(scope);
328 scope = CG(active_class_entry);
334 if (UNEXPECTED(!scope)) {
335 zend_error(E_EXCEPTION | E_ERROR, "Cannot access self:: when no class scope is active");
338 ce = scope;
341 if (UNEXPECTED(!scope)) {
342 zend_error(E_EXCEPTION | E_ERROR, "Cannot access parent:: when no class scope i
[all...]
H A Dzend_dtrace.c55 const char *scope, *filename, *funcname, *classname; local
56 scope = filename = funcname = classname = NULL;
66 classname = get_active_class_name(&scope);
75 DTRACE_FUNCTION_ENTRY((char *)funcname, (char *)filename, lineno, (char *)classname, (char *)scope);
81 DTRACE_FUNCTION_RETURN((char *)funcname, (char *)filename, lineno, (char *)classname, (char *)scope);
H A Dzend_execute_API.c181 EG(scope) = NULL;
410 zend_class_entry *ce = func->common.scope;
531 ZEND_API int zval_update_constant_ex(zval *p, zend_bool inline_change, zend_class_entry *scope) /* {{{ */ argument
550 if (EG(scope) && EG(scope)->name) {
551 ZVAL_STR_COPY(p, EG(scope)->name);
555 } else if (UNEXPECTED((const_value = zend_get_constant_ex(Z_STR_P(p), scope, Z_CONST_FLAGS_P(p))) == NULL)) {
629 if (UNEXPECTED(zend_ast_evaluate(&tmp, Z_ASTVAL_P(p), scope) != SUCCESS)) {
698 orig_scope = EG(scope);
770 zend_error(E_EXCEPTION | E_ERROR, "Cannot call abstract method %s::%s()", ZSTR_VAL(func->common.scope
[all...]
H A Dzend_inheritance.c188 if (!strcasecmp(class_name, "parent") && proto->common.scope) {
189 fe_class_name = zend_string_copy(proto->common.scope->name);
190 } else if (!strcasecmp(class_name, "self") && fe->common.scope) {
191 fe_class_name = zend_string_copy(fe->common.scope->name);
205 if (!strcasecmp(class_name, "parent") && proto->common.scope && proto->common.scope->parent) {
206 proto_class_name = zend_string_copy(proto->common.scope->parent->name);
207 } else if (!strcasecmp(class_name, "self") && proto->common.scope) {
208 proto_class_name = zend_string_copy(proto->common.scope->name);
270 && ((proto->common.scope
[all...]
H A Dzend_object_handlers.c271 return (ce == EG(scope) || property_info->ce == EG(scope));
274 return zend_check_protected(property_info->ce, EG(scope));
338 /* Try to look in the scope instead */
344 if (EG(scope) != ce
345 && EG(scope)
346 && is_derived_class(ce, EG(scope))
347 && (zv = zend_hash_find(&EG(scope)->properties_info, member)) != NULL
415 /* Try to look in the scope instead */
421 if (EG(scope) !
998 zend_check_protected(zend_class_entry *ce, zend_class_entry *scope) argument
[all...]
H A Dzend_objects.c95 if (object->ce != EG(scope)) {
101 EG(scope) ? ZSTR_VAL(EG(scope)->name) : "",
108 if (!zend_check_protected(zend_get_function_root_class(destructor), EG(scope))) {
114 EG(scope) ? ZSTR_VAL(EG(scope)->name) : "",
H A Dzend_builtin_functions.c420 zend_error(E_WARNING, "func_num_args(): Called from the global scope - no function context");
446 zend_error(E_WARNING, "func_get_arg(): Called from the global scope - no function context");
478 zend_error(E_WARNING, "func_get_args(): Called from the global scope - no function context");
905 if (EG(scope)) {
906 RETURN_STR_COPY(EG(scope)->name);
930 } else if (!EG(scope)) {
938 Retrieves the parent class name for object or class or current scope or false if not in a scope. */
949 ce = EG(scope);
1054 prop_info->ce != EG(scope)) ||
[all...]
/PHP_TRUNK/ext/sockets/
H A Dsockaddr_conv.c23 char *scope = strchr(string, '%'); local
63 if (scope++) {
68 if (IS_LONG == is_numeric_string(scope, strlen(scope), &lval, &dval, 0)) {
73 php_string_to_if_index(scope, &scope_id);
/PHP_TRUNK/ext/opcache/Optimizer/
H A Dpass1_5.c297 if (op_array->scope &&
299 ZSTR_VAL(op_array->scope->name), Z_STRLEN(ZEND_OP1_LITERAL(opline)) + 1)) {
300 ce = op_array->scope;
311 } else if (op_array->scope &&
318 ce = op_array->scope;
H A Dzend_optimizer.c625 if (op_array->scope == ce) {
629 if ((orig_op_array = zend_hash_find_ptr(&op_array->scope->function_table, q->key)) != NULL) {
656 if (op_array->scope == ce) {
660 if ((orig_op_array = zend_hash_find_ptr(&op_array->scope->function_table, q->key)) != NULL) {
/PHP_TRUNK/ext/reflection/
H A Dphp_reflection.c369 static void _function_string(string *str, zend_function *fptr, zend_class_entry *scope, char* indent);
503 && ((mptr->common.fn_flags & ZEND_ACC_PRIVATE) == 0 || mptr->common.scope == ce))
517 && ((mptr->common.fn_flags & ZEND_ACC_PRIVATE) == 0 || mptr->common.scope == ce))
583 && ((mptr->common.fn_flags & ZEND_ACC_PRIVATE) == 0 || mptr->common.scope == ce))
589 || mptr->common.scope == ce
706 old_scope = EG(scope);
707 EG(scope) = fptr->common.scope;
709 EG(scope) = old_scope;
792 static void _function_string(string *str, zend_function *fptr, zend_class_entry *scope, cha argument
[all...]
/PHP_TRUNK/ext/spl/
H A Dspl_engine.h76 fcc.calling_scope = EG(scope);
H A Dspl_fixedarray.c265 if (class_type->iterator_funcs.zf_rewind->common.scope != parent) {
268 if (class_type->iterator_funcs.zf_valid->common.scope != parent) {
271 if (class_type->iterator_funcs.zf_key->common.scope != parent) {
274 if (class_type->iterator_funcs.zf_current->common.scope != parent) {
277 if (class_type->iterator_funcs.zf_next->common.scope != parent) {
282 if (intern->fptr_offset_get->common.scope == parent) {
286 if (intern->fptr_offset_set->common.scope == parent) {
290 if (intern->fptr_offset_has->common.scope == parent) {
294 if (intern->fptr_offset_del->common.scope == parent) {
298 if (intern->fptr_count->common.scope
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_frame.c40 EG(scope) = PHPDBG_EX(func)->op_array.scope;
82 EG(scope) = PHPDBG_EX(func)->op_array.scope;
H A Dphpdbg_info.c206 if (ops->scope) {
207 phpdbg_notice("variableinfo", "method=\"%s::%s\" num=\"%d\"", "Variables in %s::%s() (%d)", ops->scope->name, ops->function_name, zend_hash_num_elements(&vars));
296 if (ops->scope) {
297 phpdbg_notice("literalinfo", "method=\"%s::%s\" num=\"%d\"", "Literal Constants in %s::%s() (%d)", ops->scope->name, ops->function_name, count);
H A Dphpdbg_print.c65 if (method->common.scope) {
69 ZSTR_VAL(method->common.scope->name),
104 if (method->common.scope) {
105 phpdbg_writeln("printoplineinfo", "type=\"Internal\" method=\"%s::%s\"", "\tInternal %s::%s()", ZSTR_VAL(method->common.scope->name), ZSTR_VAL(method->common.function_name));
137 if (ops->scope) {
138 phpdbg_notice("printinfo", "method=\"%s::%s\" num=\"%d\"", "Stack in %s::%s() (%d ops)", ZSTR_VAL(ops->scope->name), ZSTR_VAL(ops->function_name), ops->last);
226 /* search active scope if begins with period */
228 if (EG(scope)) {
232 func_table = &EG(scope)->function_table;
251 (fbc->common.scope)
[all...]

Completed in 64 milliseconds

123