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

123

/PHP_5_6/Zend/
H A Dzend_dtrace.c50 const char *scope, *filename, *funcname, *classname; local
51 scope = filename = funcname = classname = NULL;
61 classname = get_active_class_name(&scope TSRMLS_CC);
70 DTRACE_FUNCTION_ENTRY((char *)funcname, (char *)filename, lineno, (char *)classname, (char *)scope);
76 DTRACE_FUNCTION_RETURN((char *)funcname, (char *)filename, lineno, (char *)classname, (char *)scope);
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_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.c74 if (object->ce != EG(scope)) {
80 EG(scope) ? EG(scope)->name : "",
87 if (!zend_check_protected(zend_get_function_root_class(destructor), EG(scope))) {
93 EG(scope) ? EG(scope)->name : "",
H A Dzend_ast.h59 ZEND_API void zend_ast_evaluate(zval *result, zend_ast *ast, zend_class_entry *scope TSRMLS_DC);
H A Dzend_constants.c226 if (EG(scope) && EG(scope)->name) {
231 const_name_len = sizeof("\0__CLASS__") + EG(scope)->name_length;
234 zend_str_tolower_copy(const_name + sizeof("\0__CLASS__")-1, EG(scope)->name, EG(scope)->name_length);
238 Z_STRVAL((**c).value) = estrndup(EG(scope)->name, EG(scope)->name_length);
239 Z_STRLEN((**c).value) = EG(scope)->name_length;
302 ZEND_API int zend_get_constant_ex(const char *name, uint name_len, zval *result, zend_class_entry *scope, ulong flags TSRMLS_DC) argument
327 if (!scope) {
[all...]
H A Dzend_execute.h162 ZEND_API int zval_update_constant_inline_change(zval **pp, zend_class_entry *scope TSRMLS_DC);
163 ZEND_API int zval_update_constant_no_inline_change(zval **pp, zend_class_entry *scope TSRMLS_DC);
164 ZEND_API int zval_update_constant_ex(zval **pp, zend_bool inline_change, zend_class_entry *scope TSRMLS_DC);
H A Dzend_builtin_functions.c398 zend_error(E_WARNING, "func_num_args(): Called from the global scope - no function context");
425 zend_error(E_WARNING, "func_get_arg(): Called from the global scope - no function context");
453 zend_error(E_WARNING, "func_get_args(): Called from the global scope - no function context");
763 if (EG(scope)) {
764 RETURN_STRINGL(EG(scope)->name, EG(scope)->name_length, 1);
788 } else if (!EG(scope)) {
797 Retrieves the parent class name for object or class or current scope. */
810 ce = EG(scope);
921 prop_info->ce != EG(scope)) ||
[all...]
H A Dzend_closures.c73 /* {{{ proto Closure Closure::bind(Closure $old, object $to [, mixed $scope = "static" ] )
74 Create a closure from another one and bind to another object and scope */
91 if (scope_arg != NULL) { /* scope argument was given */
115 ce = closure->func.common.scope;
126 } else { /* scope argument not given; do not change the scope by default */
127 ce = closure->func.common.scope;
157 invoke->internal_function.scope = zend_ce_closure;
283 zend_create_closure(&result, &closure->func, closure->func.common.scope, closure->this_ptr TSRMLS_CC);
308 *ce_ptr = closure->func.common.scope;
436 zend_create_closure(zval *res, zend_function *func, zend_class_entry *scope, zval *this_ptr TSRMLS_DC) argument
[all...]
H A Dzend_generators.c250 /* Requires globals EG(scope), EG(current_scope), EG(This),
306 execute_data->current_scope = EG(scope);
351 zend_class_entry *original_scope = EG(scope);
365 EG(scope) = generator->execute_data->current_scope;
389 EG(scope) = original_scope;
394 * rethrow it in the parent scope. */
H A Dzend_ast.c105 ZEND_API void zend_ast_evaluate(zval *result, zend_ast *ast, zend_class_entry *scope TSRMLS_DC)
111 zend_ast_evaluate(&op1, (&ast->u.child)[0], scope TSRMLS_CC);
112 zend_ast_evaluate(&op2, (&ast->u.child)[1], scope TSRMLS_CC);
118 zend_ast_evaluate(&op1, (&ast->u.child)[0], scope TSRMLS_CC);
119 zend_ast_evaluate(&op2, (&ast->u.child)[1], scope TSRMLS_CC);
125 zend_ast_evaluate(&op1, (&ast->u.child)[0], scope TSRMLS_CC);
126 zend_ast_evaluate(&op2, (&ast->u.child)[1], scope TSRMLS_CC);
132 zend_ast_evaluate(&op1, (&ast->u.child)[0], scope TSRMLS_CC);
133 zend_ast_evaluate(&op2, (&ast->u.child)[1], scope TSRMLS_CC);
139 zend_ast_evaluate(&op1, (&ast->u.child)[0], scope TSRMLS_C
[all...]
H A Dzend_globals.h201 zend_class_entry *scope; member in struct:_zend_executor_globals
H A Dzend_execute_API.c189 EG(scope) = NULL;
353 zend_class_entry *ce = EG(current_execute_data)->function_state.function->common.scope;
457 ZEND_API int zval_update_constant_ex(zval **pp, zend_bool inline_change, zend_class_entry *scope TSRMLS_DC) /* {{{ */
477 if (!zend_get_constant_ex(p->value.str.val, p->value.str.len, &const_value, scope, Z_REAL_TYPE_P(p) TSRMLS_CC)) {
550 zend_ast_evaluate(&const_value, Z_AST_P(p), scope TSRMLS_CC);
560 ZEND_API int zval_update_constant_inline_change(zval **pp, zend_class_entry *scope TSRMLS_DC) /* {{{ */
562 return zval_update_constant_ex(pp, 1, scope TSRMLS_CC);
566 ZEND_API int zval_update_constant_no_inline_change(zval **pp, zend_class_entry *scope TSRMLS_DC) /* {{{ */
568 return zval_update_constant_ex(pp, 0, scope TSRMLS_CC);
711 zend_error_noreturn(E_ERROR, "Cannot call abstract method %s::%s()", EX(function_state).function->common.scope
[all...]
H A Dzend_object_handlers.c275 return zend_check_protected(property_info->ce, EG(scope));
277 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 && zend_hash_quick_find(&EG(scope)->properties_info, Z_STRVAL_P(member), Z_STRLEN_P(member)+1, h, (void **) &scope_property_info)==SUCCESS
958 * 1. The class of our object is the same as the scope, an
994 zend_check_protected(zend_class_entry *ce, zend_class_entry *scope) argument
[all...]
H A Dzend_API.c771 const char *class_name = active_function->common.scope ? active_function->common.scope->name : "";
791 const char *class_name = active_function->common.scope ? active_function->common.scope->name : "";
814 const char *class_name = active_function->common.scope ? active_function->common.scope->name : "";
1041 zend_class_entry *old_scope = EG(scope);
1043 EG(scope) = Z_OBJCE_P(obj);
1045 EG(scope) = old_scope;
1057 zend_class_entry **scope local
1091 zend_class_entry **scope = EG(in_execution)?&EG(scope):&CG(active_class_entry); local
2029 zend_register_functions(zend_class_entry *scope, const zend_function_entry *functions, HashTable *function_table, int type TSRMLS_DC) argument
2736 zend_class_entry *scope = EG(active_op_array) ? EG(active_op_array)->scope : NULL; local
3713 zend_update_property(zend_class_entry *scope, zval *object, const char *name, int name_length, zval *value TSRMLS_DC) argument
3737 zend_update_property_null(zend_class_entry *scope, zval *object, const char *name, int name_length TSRMLS_DC) argument
3749 zend_update_property_bool(zend_class_entry *scope, zval *object, const char *name, int name_length, long value TSRMLS_DC) argument
3761 zend_update_property_long(zend_class_entry *scope, zval *object, const char *name, int name_length, long value TSRMLS_DC) argument
3773 zend_update_property_double(zend_class_entry *scope, zval *object, const char *name, int name_length, double value TSRMLS_DC) argument
3785 zend_update_property_string(zend_class_entry *scope, zval *object, const char *name, int name_length, const char *value TSRMLS_DC) argument
3797 zend_update_property_stringl(zend_class_entry *scope, zval *object, const char *name, int name_length, const char *value, int value_len TSRMLS_DC) argument
3809 zend_update_static_property(zend_class_entry *scope, const char *name, int name_length, zval *value TSRMLS_DC) argument
3846 zend_update_static_property_null(zend_class_entry *scope, const char *name, int name_length TSRMLS_DC) argument
3858 zend_update_static_property_bool(zend_class_entry *scope, const char *name, int name_length, long value TSRMLS_DC) argument
3870 zend_update_static_property_long(zend_class_entry *scope, const char *name, int name_length, long value TSRMLS_DC) argument
3882 zend_update_static_property_double(zend_class_entry *scope, const char *name, int name_length, double value TSRMLS_DC) argument
3894 zend_update_static_property_string(zend_class_entry *scope, const char *name, int name_length, const char *value TSRMLS_DC) argument
3906 zend_update_static_property_stringl(zend_class_entry *scope, const char *name, int name_length, const char *value, int value_len TSRMLS_DC) argument
3918 zend_read_property(zend_class_entry *scope, zval *object, const char *name, int name_length, zend_bool silent TSRMLS_DC) argument
3943 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.h268 ZEND_API int zend_register_functions(zend_class_entry *scope, const zend_function_entry *functions, HashTable *function_table, int type TSRMLS_DC);
326 ZEND_API void zend_update_property(zend_class_entry *scope, zval *object, const char *name, int name_length, zval *value TSRMLS_DC);
327 ZEND_API void zend_update_property_null(zend_class_entry *scope, zval *object, const char *name, int name_length TSRMLS_DC);
328 ZEND_API void zend_update_property_bool(zend_class_entry *scope, zval *object, const char *name, int name_length, long value TSRMLS_DC);
329 ZEND_API void zend_update_property_long(zend_class_entry *scope, zval *object, const char *name, int name_length, long value TSRMLS_DC);
330 ZEND_API void zend_update_property_double(zend_class_entry *scope, zval *object, const char *name, int name_length, double value TSRMLS_DC);
331 ZEND_API void zend_update_property_string(zend_class_entry *scope, zval *object, const char *name, int name_length, const char *value TSRMLS_DC);
332 ZEND_API void zend_update_property_stringl(zend_class_entry *scope, zval *object, const char *name, int name_length, const char *value, int value_length TSRMLS_DC);
334 ZEND_API int zend_update_static_property(zend_class_entry *scope, const char *name, int name_length, zval *value TSRMLS_DC);
335 ZEND_API int zend_update_static_property_null(zend_class_entry *scope, cons
[all...]
/PHP_5_6/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_5_6/ext/spl/
H A Dspl_fixedarray.c277 if (class_type->iterator_funcs.zf_rewind->common.scope != parent) {
280 if (class_type->iterator_funcs.zf_valid->common.scope != parent) {
283 if (class_type->iterator_funcs.zf_key->common.scope != parent) {
286 if (class_type->iterator_funcs.zf_current->common.scope != parent) {
289 if (class_type->iterator_funcs.zf_next->common.scope != parent) {
294 if (intern->fptr_offset_get->common.scope == parent) {
298 if (intern->fptr_offset_set->common.scope == parent) {
302 if (intern->fptr_offset_has->common.scope == parent) {
306 if (intern->fptr_offset_del->common.scope == parent) {
310 if (intern->fptr_count->common.scope
[all...]
H A Dspl_engine.h77 fcc.calling_scope = EG(scope);
/PHP_5_6/ext/reflection/
H A Dphp_reflection.c350 static void _function_string(string *str, zend_function *fptr, zend_class_entry *scope, char* indent TSRMLS_DC);
504 && ((mptr->common.fn_flags & ZEND_ACC_PRIVATE) == 0 || mptr->common.scope == ce))
522 && ((mptr->common.fn_flags & ZEND_ACC_PRIVATE) == 0 || mptr->common.scope == ce))
605 && ((mptr->common.fn_flags & ZEND_ACC_PRIVATE) == 0 || mptr->common.scope == ce))
614 || mptr->common.scope == ce
738 old_scope = EG(scope);
739 EG(scope) = fptr->common.scope;
741 EG(scope) = old_scope;
830 static void _function_string(string *str, zend_function *fptr, zend_class_entry *scope, cha argument
[all...]
/PHP_5_6/ext/opcache/Optimizer/
H A Dpass1_5.c274 if (op_array->scope &&
276 op_array->scope->name, Z_STRLEN(ZEND_OP1_LITERAL(opline)) + 1)) {
277 pce = &op_array->scope;
291 } else if (op_array->scope &&
298 pce = &op_array->scope;
/PHP_5_6/sapi/phpdbg/
H A Dphpdbg_info.c223 if (ops->scope) {
224 phpdbg_notice("variableinfo", "method=\"%s::%s\" num=\"%d\"", "Variables in %s::%s() (%d)", ops->scope->name, ops->function_name, zend_hash_num_elements(&vars));
320 if (ops->scope) {
321 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,
100 if (method->common.scope) {
101 phpdbg_writeln("printoplineinfo", "type=\"Internal\" method=\"%s::%s\"", "Internal %s::%s()", method->common.scope->name, method->common.function_name);
134 if (ops->scope) {
135 phpdbg_notice("printinfo", "method=\"%s::%s\" num=\"%d\"", "Stack in %s::%s() (%d ops)", ops->scope->name, ops->function_name, ops->last);
225 /* search active scope if begins with period */
227 if (EG(scope)) {
231 func_table = &EG(scope)->function_table;
249 (fbc->common.scope)
[all...]
H A Dphpdbg_frame.c46 EG(scope) = PHPDBG_EX(current_scope);
95 EG(scope) = PHPDBG_EX(current_scope);

Completed in 54 milliseconds

123