Searched refs:scope (Results 1 - 25 of 63) 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_ast.c205 ZEND_API void zend_ast_evaluate(zval *result, zend_ast *ast, zend_class_entry *scope) argument
213 zend_ast_evaluate(&op1, ast->child[0], scope);
214 zend_ast_evaluate(&op2, ast->child[1], scope);
226 zend_ast_evaluate(&op1, ast->child[0], scope);
227 zend_ast_evaluate(&op2, ast->child[1], scope);
236 zend_ast_evaluate(&op1, ast->child[0], scope);
244 if (scope) {
247 zval_update_constant_ex(zv, 1, scope);
253 zval_update_constant_ex(result, 1, scope);
259 zend_ast_evaluate(&op1, ast->child[0], scope);
[all...]
H A Dzend_closures.c70 Call closure, binding to a given object with its class as the scope */
96 !instanceof_function(Z_OBJCE_P(newthis), closure->func.common.scope)) {
97 zend_error(E_WARNING, "Cannot bind function %s::%s to object of class %s", closure->func.common.scope->name->val, closure->func.common.function_name->val, Z_OBJCE_P(newthis)->name->val);
114 /* use scope of passed object */
115 my_function.common.scope = Z_OBJCE_P(newthis);
124 /* {{{ proto Closure Closure::bind(Closure $old, object $to [, mixed $scope = "static" ] )
125 Create a closure from another one and bind to another object and scope */
142 if (scope_arg != NULL) { /* scope argument was given */
150 ce = closure->func.common.scope;
158 } else { /* scope argumen
471 zend_create_closure(zval *res, zend_function *func, zend_class_entry *scope, zval *this_ptr) argument
[all...]
H A Dzend_closures.h31 ZEND_API void zend_create_closure(zval *res, zend_function *op_array, zend_class_entry *scope, zval *this_ptr);
H A Dzend_compile.h306 zend_class_entry *scope; member in struct:_zend_op_array
356 zend_class_entry *scope; member in struct:_zend_internal_function
367 #define ZEND_FN_SCOPE_NAME(function) ((function) && (function)->common.scope ? (function)->common.scope->name->val : "")
376 zend_class_entry *scope; member in struct:_zend_function::__anon13
H A Dzend_constants.c238 if (EG(scope) && EG(scope)->name) {
242 const_name_len = sizeof("\0__CLASS__") + EG(scope)->name->len;
245 zend_str_tolower_copy(const_name->val + sizeof("\0__CLASS__")-1, EG(scope)->name->val, EG(scope)->name->len);
249 ZVAL_STR_COPY(&c->value, EG(scope)->name);
326 ZEND_API zval *zend_get_constant_ex(zend_string *cname, zend_class_entry *scope, zend_ulong flags) argument
354 if (!scope) {
356 scope = EG(scope);
[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.h114 ZEND_API int zval_update_constant_inline_change(zval *pp, zend_class_entry *scope);
115 ZEND_API int zval_update_constant_no_inline_change(zval *pp, zend_class_entry *scope);
116 ZEND_API int zval_update_constant_ex(zval *pp, zend_bool inline_change, zend_class_entry *scope);
H A Dzend_execute_API.c184 EG(scope) = NULL;
397 zend_class_entry *ce = func->common.scope;
502 ZEND_API int zval_update_constant_ex(zval *p, zend_bool inline_change, zend_class_entry *scope) /* {{{ */ argument
515 const_value = zend_get_constant_ex(Z_STR_P(p), scope, Z_CONST_FLAGS_P(p));
592 zend_ast_evaluate(&tmp, Z_ASTVAL_P(p), scope);
603 ZEND_API int zval_update_constant_inline_change(zval *pp, zend_class_entry *scope) /* {{{ */ argument
605 return zval_update_constant_ex(pp, 1, scope);
609 ZEND_API int zval_update_constant_no_inline_change(zval *pp, zend_class_entry *scope) /* {{{ */ argument
611 return zval_update_constant_ex(pp, 0, scope);
673 orig_scope = EG(scope);
[all...]
H A Dzend_inheritance.c232 && ((proto->common.scope->ce_flags & ZEND_ACC_INTERFACE) == 0
295 if (!strcasecmp(class_name, "parent") && proto->common.scope) {
296 fe_class_name = zend_string_copy(proto->common.scope->name);
297 } else if (!strcasecmp(class_name, "self") && fe->common.scope) {
298 fe_class_name = zend_string_copy(fe->common.scope->name);
312 if (!strcasecmp(class_name, "parent") && proto->common.scope && proto->common.scope->parent) {
313 proto_class_name = zend_string_copy(proto->common.scope->parent->name);
314 } else if (!strcasecmp(class_name, "self") && proto->common.scope) {
315 proto_class_name = zend_string_copy(proto->common.scope
[all...]
H A Dzend_object_handlers.h159 ((fbc)->common.prototype ? (fbc)->common.prototype->common.scope : (fbc)->common.scope)
175 ZEND_API int zend_check_protected(zend_class_entry *ce, zend_class_entry *scope);
H A Dzend_objects.c78 if (object->ce != EG(scope)) {
84 EG(scope) ? EG(scope)->name->val : "",
91 if (!zend_check_protected(zend_get_function_root_class(destructor), EG(scope))) {
97 EG(scope) ? EG(scope)->name->val : "",
H A Dzend_vm_def.h1863 EG(scope) = EX(func)->op_array.scope;
2433 if (Z_OBJ(EX(This)) && Z_OBJ(EX(This))->ce != ce->constructor->common.scope && (ce->constructor->common.fn_flags & ZEND_ACC_PRIVATE)) {
2453 fbc->common.scope->name->val, fbc->common.function_name->val,
2460 fbc->common.scope->name->val, fbc->common.function_name->val,
2589 fbc->common.scope->name->val, fbc->common.function_name->val);
2594 fbc->common.scope->name->val, fbc->common.function_name->val);
2656 } else if (func->common.scope &&
2661 func->common.scope->name->val, func->common.function_name->val);
2666 func->common.scope
2777 EG(scope) = object ? NULL : fbc->common.scope; variable
2779 EG(scope) = fbc->common.scope; variable
2836 EG(scope) = fbc->common.scope; variable
2867 EG(scope) = fbc->common.scope; variable
2911 EG(scope) = EX(func)->op_array.scope; variable
4008 EG(scope) = ce; variable
4010 EG(scope) = EX(func)->op_array.scope; variable
[all...]
H A Dzend_builtin_functions.c408 zend_error(E_WARNING, "func_num_args(): Called from the global scope - no function context");
434 zend_error(E_WARNING, "func_get_arg(): Called from the global scope - no function context");
468 zend_error(E_WARNING, "func_get_args(): Called from the global scope - no function context");
882 if (EG(scope)) {
883 RETURN_STR(zend_string_copy(EG(scope)->name));
904 } else if (!EG(scope)) {
912 Retrieves the parent class name for object or class or current scope. */
923 ce = EG(scope);
1024 prop_info->ce != EG(scope)) ||
1026 !zend_check_protected(prop_info->ce, EG(scope))) ||
[all...]
H A Dzend_API.c280 const char *class_name = active_function->common.scope ? active_function->common.scope->name->val : "";
869 const char *class_name = active_function->common.scope ? active_function->common.scope->name->val : "";
889 const char *class_name = active_function->common.scope ? active_function->common.scope->name->val : "";
912 const char *class_name = active_function->common.scope ? active_function->common.scope->name->val : "";
1028 * Z_OBJ(EG(This)) to NULL when calling an internal function with common.scope == NULL.
1031 zend_bool is_method = EG(current_execute_data)->func->common.scope !
1136 zend_class_entry **scope = EG(current_execute_data) ? &EG(scope) : &CG(active_class_entry); local
1200 zend_class_entry **scope = EG(current_execute_data) ? &EG(scope) : &CG(active_class_entry); local
2138 zend_register_functions(zend_class_entry *scope, const zend_function_entry *functions, HashTable *function_table, int type) argument
2859 zend_class_entry *scope; local
3791 zend_update_property(zend_class_entry *scope, zval *object, const char *name, size_t name_length, zval *value) argument
3809 zend_update_property_null(zend_class_entry *scope, zval *object, const char *name, size_t name_length) argument
3818 zend_update_property_bool(zend_class_entry *scope, zval *object, const char *name, size_t name_length, zend_long value) argument
3827 zend_update_property_long(zend_class_entry *scope, zval *object, const char *name, size_t name_length, zend_long value) argument
3836 zend_update_property_double(zend_class_entry *scope, zval *object, const char *name, size_t name_length, double value) argument
3845 zend_update_property_str(zend_class_entry *scope, zval *object, const char *name, size_t name_length, zend_string *value) argument
3854 zend_update_property_string(zend_class_entry *scope, zval *object, const char *name, size_t name_length, const char *value) argument
3864 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
3874 zend_update_static_property(zend_class_entry *scope, const char *name, size_t name_length, zval *value) argument
3913 zend_update_static_property_null(zend_class_entry *scope, const char *name, size_t name_length) argument
3922 zend_update_static_property_bool(zend_class_entry *scope, const char *name, size_t name_length, zend_long value) argument
3931 zend_update_static_property_long(zend_class_entry *scope, const char *name, size_t name_length, zend_long value) argument
3940 zend_update_static_property_double(zend_class_entry *scope, const char *name, size_t name_length, double value) argument
3949 zend_update_static_property_string(zend_class_entry *scope, const char *name, size_t name_length, const char *value) argument
3959 zend_update_static_property_stringl(zend_class_entry *scope, const char *name, size_t name_length, const char *value, size_t value_len) argument
3969 zend_read_property(zend_class_entry *scope, zval *object, const char *name, size_t name_length, zend_bool silent) argument
3990 zend_read_static_property(zend_class_entry *scope, const char *name, size_t name_length, zend_bool silent) argument
[all...]
H A Dzend_API.h263 ZEND_API int zend_register_functions(zend_class_entry *scope, const zend_function_entry *functions, HashTable *function_table, int type);
321 ZEND_API void zend_update_property(zend_class_entry *scope, zval *object, const char *name, size_t name_length, zval *value);
322 ZEND_API void zend_update_property_null(zend_class_entry *scope, zval *object, const char *name, size_t name_length);
323 ZEND_API void zend_update_property_bool(zend_class_entry *scope, zval *object, const char *name, size_t name_length, zend_long value);
324 ZEND_API void zend_update_property_long(zend_class_entry *scope, zval *object, const char *name, size_t name_length, zend_long value);
325 ZEND_API void zend_update_property_double(zend_class_entry *scope, zval *object, const char *name, size_t name_length, double value);
326 ZEND_API void zend_update_property_str(zend_class_entry *scope, zval *object, const char *name, size_t name_length, zend_string *value);
327 ZEND_API void zend_update_property_string(zend_class_entry *scope, zval *object, const char *name, size_t name_length, const char *value);
328 ZEND_API void zend_update_property_stringl(zend_class_entry *scope, zval *object, const char *name, size_t name_length, const char *value, size_t value_length);
330 ZEND_API int zend_update_static_property(zend_class_entry *scope, cons
[all...]
H A Dzend_object_handlers.c267 return zend_check_protected(property_info->ce, EG(scope));
269 return (ce == EG(scope) || property_info->ce == EG(scope));
336 /* Try to look in the scope instead */
342 if (EG(scope) != ce
343 && EG(scope)
344 && is_derived_class(ce, EG(scope))
345 && (zv = zend_hash_find(&EG(scope)->properties_info, member)) != NULL
883 * 1. The class of our object is the same as the scope, and the private
884 * function (EX(fbc)) has the same scope
921 zend_check_protected(zend_class_entry *ce, zend_class_entry *scope) argument
[all...]
/PHP_TRUNK/ext/opcache/Optimizer/
H A Dpass1_5.c287 if (op_array->scope &&
289 op_array->scope->name->val, Z_STRLEN(ZEND_OP1_LITERAL(opline)) + 1)) {
290 ce = op_array->scope;
301 } else if (op_array->scope &&
308 ce = op_array->scope;
/PHP_TRUNK/ext/reflection/
H A Dphp_reflection.c350 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))
521 && ((mptr->common.fn_flags & ZEND_ACC_PRIVATE) == 0 || mptr->common.scope == ce))
602 && ((mptr->common.fn_flags & ZEND_ACC_PRIVATE) == 0 || mptr->common.scope == ce))
610 || mptr->common.scope == ce
726 old_scope = EG(scope);
727 EG(scope) = fptr->common.scope;
729 EG(scope) = old_scope;
813 static void _function_string(string *str, zend_function *fptr, zend_class_entry *scope, cha argument
[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/spl/
H A Dspl_engine.h76 fcc.calling_scope = EG(scope);
H A Dspl_fixedarray.c267 if (class_type->iterator_funcs.zf_rewind->common.scope != parent) {
270 if (class_type->iterator_funcs.zf_valid->common.scope != parent) {
273 if (class_type->iterator_funcs.zf_key->common.scope != parent) {
276 if (class_type->iterator_funcs.zf_current->common.scope != parent) {
279 if (class_type->iterator_funcs.zf_next->common.scope != parent) {
284 if (intern->fptr_offset_get->common.scope == parent) {
288 if (intern->fptr_offset_set->common.scope == parent) {
292 if (intern->fptr_offset_has->common.scope == parent) {
296 if (intern->fptr_offset_del->common.scope == parent) {
300 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 method->common.scope->name->val,
100 if (method->common.scope) {
101 phpdbg_writeln("printoplineinfo", "type=\"Internal\" method=\"%s::%s\"", "\tInternal %s::%s()", method->common.scope->name->val, method->common.function_name->val);
133 if (ops->scope) {
134 phpdbg_notice("printinfo", "method=\"%s::%s\" num=\"%d\"", "Stack in %s::%s() (%d ops)", ops->scope->name->val, ops->function_name->val, ops->last);
222 /* search active scope if begins with period */
224 if (EG(scope)) {
228 func_table = &EG(scope)->function_table;
247 (fbc->common.scope)
[all...]

Completed in 58 milliseconds

123