Searched refs:scope (Results 1 - 25 of 59) 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_closures.h31 ZEND_API void zend_create_closure(zval *res, zend_function *op_array, zend_class_entry *scope, zval *this_ptr TSRMLS_DC);
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 TSRMLS_CC);
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_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(&c->value, zend_string_copy(EG(scope)->name));
326 ZEND_API zval *zend_get_constant_ex(zend_string *cname, zend_class_entry *scope, zend_ulong flags TSRMLS_DC) argument
354 if (!scope) {
356 scope = EG(scope);
[all...]
H A Dzend_object_handlers.h155 ((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.c77 if (object->ce != EG(scope)) {
83 EG(scope) ? EG(scope)->name->val : "",
90 if (!zend_check_protected(zend_get_function_root_class(destructor), EG(scope))) {
96 EG(scope) ? EG(scope)->name->val : "",
H A Dzend_execute.h145 ZEND_API int zval_update_constant_inline_change(zval *pp, zend_class_entry *scope TSRMLS_DC);
146 ZEND_API int zval_update_constant_no_inline_change(zval *pp, zend_class_entry *scope TSRMLS_DC);
147 ZEND_API int zval_update_constant_ex(zval *pp, zend_bool inline_change, zend_class_entry *scope TSRMLS_DC);
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 TSRMLS_CC)) {
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
470 zend_create_closure(zval *res, zend_function *func, zend_class_entry *scope, zval *this_ptr TSRMLS_DC) argument
[all...]
H A Dzend_object_handlers.c269 return zend_check_protected(property_info->ce, EG(scope));
271 if ((ce==EG(scope) || property_info->ce == EG(scope)) && EG(scope)) {
347 /* Try to look in the scope instead */
352 if (EG(scope) != ce
353 && EG(scope)
354 && is_derived_class(ce, EG(scope))
355 && (scope_property_info = zend_hash_find_ptr(&EG(scope)->properties_info, member)) != NULL
971 * 1. The class of our object is the same as the scope, an
1009 zend_check_protected(zend_class_entry *ce, zend_class_entry *scope) argument
[all...]
H A Dzend_generators.c224 /* Requires globals EG(scope), EG(This) and EG(current_execute_data). */
306 zend_class_entry *original_scope = EG(scope);
314 EG(scope) = generator->execute_data->scope;
336 EG(scope) = original_scope;
340 * rethrow it in the parent scope. */
H A Dzend_API.c307 const char *class_name = active_function->common.scope ? active_function->common.scope->name->val : "";
892 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 : "";
935 const char *class_name = active_function->common.scope ? active_function->common.scope->name->val : "";
1051 * Z_OBJ(EG(This)) to NULL when calling an internal function with common.scope == NULL.
1054 zend_bool is_method = EG(current_execute_data)->func->common.scope !
1160 zend_class_entry **scope = EG(current_execute_data) ? &EG(scope) : &CG(active_class_entry); local
1224 zend_class_entry **scope = EG(current_execute_data) ? &EG(scope) : &CG(active_class_entry); local
2163 zend_register_functions(zend_class_entry *scope, const zend_function_entry *functions, HashTable *function_table, int type TSRMLS_DC) argument
2891 zend_class_entry *scope; local
3823 zend_update_property(zend_class_entry *scope, zval *object, const char *name, int name_length, zval *value TSRMLS_DC) argument
3842 zend_update_property_null(zend_class_entry *scope, zval *object, const char *name, int name_length TSRMLS_DC) argument
3851 zend_update_property_bool(zend_class_entry *scope, zval *object, const char *name, int name_length, zend_long value TSRMLS_DC) argument
3860 zend_update_property_long(zend_class_entry *scope, zval *object, const char *name, int name_length, zend_long value TSRMLS_DC) argument
3869 zend_update_property_double(zend_class_entry *scope, zval *object, const char *name, int name_length, double value TSRMLS_DC) argument
3878 zend_update_property_str(zend_class_entry *scope, zval *object, const char *name, int name_length, zend_string *value TSRMLS_DC) argument
3887 zend_update_property_string(zend_class_entry *scope, zval *object, const char *name, int name_length, const char *value TSRMLS_DC) argument
3897 zend_update_property_stringl(zend_class_entry *scope, zval *object, const char *name, int name_length, const char *value, size_t value_len TSRMLS_DC) argument
3907 zend_update_static_property(zend_class_entry *scope, const char *name, int name_length, zval *value TSRMLS_DC) argument
3944 zend_update_static_property_null(zend_class_entry *scope, const char *name, int name_length TSRMLS_DC) argument
3953 zend_update_static_property_bool(zend_class_entry *scope, const char *name, int name_length, zend_long value TSRMLS_DC) argument
3962 zend_update_static_property_long(zend_class_entry *scope, const char *name, int name_length, zend_long value TSRMLS_DC) argument
3971 zend_update_static_property_double(zend_class_entry *scope, const char *name, int name_length, double value TSRMLS_DC) argument
3980 zend_update_static_property_string(zend_class_entry *scope, const char *name, int name_length, const char *value TSRMLS_DC) argument
3990 zend_update_static_property_stringl(zend_class_entry *scope, const char *name, int name_length, const char *value, size_t value_len TSRMLS_DC) argument
4000 zend_read_property(zend_class_entry *scope, zval *object, const char *name, int name_length, zend_bool silent TSRMLS_DC) argument
4022 zend_read_static_property(zend_class_entry *scope, const char *name, int name_length, zend_bool silent TSRMLS_DC) 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 TSRMLS_DC);
321 ZEND_API void zend_update_property(zend_class_entry *scope, zval *object, const char *name, int name_length, zval *value TSRMLS_DC);
322 ZEND_API void zend_update_property_null(zend_class_entry *scope, zval *object, const char *name, int name_length TSRMLS_DC);
323 ZEND_API void zend_update_property_bool(zend_class_entry *scope, zval *object, const char *name, int name_length, zend_long value TSRMLS_DC);
324 ZEND_API void zend_update_property_long(zend_class_entry *scope, zval *object, const char *name, int name_length, zend_long value TSRMLS_DC);
325 ZEND_API void zend_update_property_double(zend_class_entry *scope, zval *object, const char *name, int name_length, double value TSRMLS_DC);
326 ZEND_API void zend_update_property_str(zend_class_entry *scope, zval *object, const char *name, int name_length, zend_string *value TSRMLS_DC);
327 ZEND_API void zend_update_property_string(zend_class_entry *scope, zval *object, const char *name, int name_length, const char *value TSRMLS_DC);
328 ZEND_API void zend_update_property_stringl(zend_class_entry *scope, zval *object, const char *name, int name_length, const char *value, size_t value_length TSRMLS_DC);
330 ZEND_API int zend_update_static_property(zend_class_entry *scope, cons
[all...]
H A Dzend_ast.c211 ZEND_API void zend_ast_evaluate(zval *result, zend_ast *ast, zend_class_entry *scope TSRMLS_DC)
219 zend_ast_evaluate(&op1, ast->child[0], scope TSRMLS_CC);
220 zend_ast_evaluate(&op2, ast->child[1], scope TSRMLS_CC);
232 zend_ast_evaluate(&op1, ast->child[0], scope TSRMLS_CC);
233 zend_ast_evaluate(&op2, ast->child[1], scope TSRMLS_CC);
242 zend_ast_evaluate(&op1, ast->child[0], scope TSRMLS_CC);
250 if (scope) {
253 zval_update_constant_ex(zv, 1, scope TSRMLS_CC);
259 zval_update_constant_ex(result, 1, scope TSRMLS_CC);
265 zend_ast_evaluate(&op1, ast->child[0], scope TSRMLS_C
[all...]
H A Dzend_globals.h175 zend_class_entry *scope; member in struct:_zend_executor_globals
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");
815 if (EG(scope)) {
816 RETURN_STR(zend_string_copy(EG(scope)->name));
838 } else if (!EG(scope)) {
847 Retrieves the parent class name for object or class or current scope. */
859 ce = EG(scope);
968 prop_info->ce != EG(scope)) ||
970 !zend_check_protected(prop_info->ce, EG(scope))) ||
[all...]
H A Dzend_compile.h269 zend_class_entry *scope; member in struct:_zend_op_array
319 zend_class_entry *scope; member in struct:_zend_internal_function
330 #define ZEND_FN_SCOPE_NAME(function) ((function) && (function)->common.scope ? (function)->common.scope->name->val : "")
339 zend_class_entry *scope; member in struct:_zend_function::__anon2
370 zend_class_entry *scope; /* function scope (self) */ member in struct:_zend_execute_data
H A Dzend_execute_API.c188 EG(scope) = NULL;
404 zend_class_entry *ce = func->common.scope;
516 ZEND_API int zval_update_constant_ex(zval *p, zend_bool inline_change, zend_class_entry *scope TSRMLS_DC) /* {{{ */
529 const_value = zend_get_constant_ex(Z_STR_P(p), scope, Z_CONST_FLAGS_P(p) TSRMLS_CC);
606 zend_ast_evaluate(&tmp, Z_ASTVAL_P(p), scope TSRMLS_CC);
617 ZEND_API int zval_update_constant_inline_change(zval *pp, zend_class_entry *scope TSRMLS_DC) /* {{{ */
619 return zval_update_constant_ex(pp, 1, scope TSRMLS_CC);
623 ZEND_API int zval_update_constant_no_inline_change(zval *pp, zend_class_entry *scope TSRMLS_DC) /* {{{ */
625 return zval_update_constant_ex(pp, 0, scope TSRMLS_CC);
689 orig_scope = EG(scope);
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_list.c204 /* search active scope if begins with period */
206 if (EG(scope)) {
210 func_table = &EG(scope)->function_table;
H A Dphpdbg_frame.c45 EG(scope) = PHPDBG_EX(current_scope);
89 EG(scope) = PHPDBG_EX(current_scope);
H A Dphpdbg_info.c127 if (ops->scope) {
129 "Variables in %s::%s() (%d)", ops->scope->name, ops->function_name, zend_hash_num_elements(&vars));
214 if (ops->scope) {
216 "Literal Constants in %s::%s() (%d)", ops->scope->name, ops->function_name, count);
H A Dphpdbg_print.c65 if (method->common.scope) {
68 method->common.scope->name,
99 if (method->common.scope) {
100 phpdbg_writeln("\tInternal %s::%s()", method->common.scope->name, method->common.function_name);
133 if (ops->scope) {
134 phpdbg_notice("Stack in %s::%s()", ops->scope->name, ops->function_name);
219 /* search active scope if begins with period */
221 if (EG(scope)) {
225 func_table = &EG(scope)->function_table;
242 (fbc->common.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 TSRMLS_CC);
/PHP_TRUNK/ext/spl/
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/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 TSRMLS_DC);
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
720 old_scope = EG(scope);
721 EG(scope) = fptr->common.scope;
723 EG(scope) = old_scope;
807 static void _function_string(string *str, zend_function *fptr, zend_class_entry *scope, cha argument
[all...]

Completed in 50 milliseconds

123