Searched defs:scope (Results 1 - 15 of 15) sorted by relevance

/PHP_TRUNK/Zend/
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_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_globals.h179 zend_class_entry *scope; member in struct:_zend_executor_globals
H A Dzend_object_handlers.c266 return zend_check_protected(property_info->ce, EG(scope));
268 return (ce == EG(scope) || property_info->ce == EG(scope));
333 /* Try to look in the scope instead */
339 if (EG(scope) != ce
340 && EG(scope)
341 && is_derived_class(ce, EG(scope))
342 && (zv = zend_hash_find(&EG(scope)->properties_info, member)) != NULL
410 /* Try to look in the scope instead */
416 if (EG(scope) !
969 zend_check_protected(zend_class_entry *ce, zend_class_entry *scope) 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_API.c202 const char *class_name = active_function->common.scope ? active_function->common.scope->name->val : "";
801 const char *class_name = active_function->common.scope
802 ? active_function->common.scope->name->val : "";
881 const char *class_name = active_function->common.scope ? active_function->common.scope->name->val : "";
1017 * Z_OBJ(EG(This)) to NULL when calling an internal function with common.scope == NULL.
1020 zend_bool is_method = EG(current_execute_data)->func->common.scope != NULL;
1104 zend_class_entry *old_scope = EG(scope);
1108 EG(scope)
1125 zend_class_entry **scope = EG(current_execute_data) ? &EG(scope) : &CG(active_class_entry); local
1191 zend_class_entry **scope = EG(current_execute_data) ? &EG(scope) : &CG(active_class_entry); local
2146 zend_register_functions(zend_class_entry *scope, const zend_function_entry *functions, HashTable *function_table, int type) argument
2900 zend_class_entry *scope; local
3813 zend_update_property(zend_class_entry *scope, zval *object, const char *name, size_t name_length, zval *value) argument
3831 zend_update_property_null(zend_class_entry *scope, zval *object, const char *name, size_t name_length) argument
3840 zend_update_property_bool(zend_class_entry *scope, zval *object, const char *name, size_t name_length, zend_long value) argument
3849 zend_update_property_long(zend_class_entry *scope, zval *object, const char *name, size_t name_length, zend_long value) argument
3858 zend_update_property_double(zend_class_entry *scope, zval *object, const char *name, size_t name_length, double value) argument
3867 zend_update_property_str(zend_class_entry *scope, zval *object, const char *name, size_t name_length, zend_string *value) argument
3876 zend_update_property_string(zend_class_entry *scope, zval *object, const char *name, size_t name_length, const char *value) argument
3886 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
3896 zend_update_static_property(zend_class_entry *scope, const char *name, size_t name_length, zval *value) argument
3935 zend_update_static_property_null(zend_class_entry *scope, const char *name, size_t name_length) argument
3944 zend_update_static_property_bool(zend_class_entry *scope, const char *name, size_t name_length, zend_long value) argument
3953 zend_update_static_property_long(zend_class_entry *scope, const char *name, size_t name_length, zend_long value) argument
3962 zend_update_static_property_double(zend_class_entry *scope, const char *name, size_t name_length, double value) argument
3971 zend_update_static_property_string(zend_class_entry *scope, const char *name, size_t name_length, const char *value) argument
3981 zend_update_static_property_stringl(zend_class_entry *scope, const char *name, size_t name_length, const char *value, size_t value_len) argument
3991 zend_read_property(zend_class_entry *scope, zval *object, const char *name, size_t name_length, zend_bool silent, zval *rv) argument
4011 zend_read_static_property(zend_class_entry *scope, const char *name, size_t name_length, zend_bool silent) argument
[all...]
H A Dzend_compile.h320 zend_class_entry *scope; member in struct:_zend_op_array
370 zend_class_entry *scope; member in struct:_zend_internal_function
381 #define ZEND_FN_SCOPE_NAME(function) ((function) && (function)->common.scope ? (function)->common.scope->name->val : "")
390 zend_class_entry *scope; member in struct:_zend_function::__anon2
H A Dzend_execute_API.c181 EG(scope) = NULL;
404 zend_class_entry *ce = func->common.scope;
525 ZEND_API int zval_update_constant_ex(zval *p, zend_bool inline_change, zend_class_entry *scope) /* {{{ */ argument
544 if (EG(scope) && EG(scope)->name) {
545 ZVAL_STR_COPY(p, EG(scope)->name);
549 } else if (UNEXPECTED((const_value = zend_get_constant_ex(Z_STR_P(p), scope, Z_CONST_FLAGS_P(p))) == NULL)) {
623 if (UNEXPECTED(zend_ast_evaluate(&tmp, Z_ASTVAL_P(p), scope) != SUCCESS)) {
692 orig_scope = EG(scope);
764 zend_error(E_EXCEPTION | E_ERROR, "Cannot call abstract method %s::%s()", func->common.scope
[all...]
H A Dzend_closures.c72 Call closure, binding to a given object with its class as the scope */
98 !instanceof_function(Z_OBJCE_P(newthis), closure->func.common.scope)) {
99 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);
116 /* use scope of passed object */
117 my_function.common.scope = Z_OBJCE_P(newthis);
126 /* {{{ proto Closure Closure::bind(Closure $old, object $to [, mixed $scope = "static" ] )
127 Create a closure from another one and bind to another object and scope */
144 if (scope_arg != NULL) { /* scope argument was given */
152 ce = closure->func.common.scope;
160 } else { /* scope argumen
457 zend_create_closure(zval *res, zend_function *func, zend_class_entry *scope, zval *this_ptr) argument
[all...]
H A Dzend_vm_def.h2384 EG(scope) = EX(func)->op_array.scope;
3028 if (Z_OBJ(EX(This)) && Z_OBJ(EX(This))->ce != ce->constructor->common.scope && (ce->constructor->common.fn_flags & ZEND_ACC_PRIVATE)) {
3047 fbc->common.scope->name->val, fbc->common.function_name->val);
3054 fbc->common.scope->name->val, fbc->common.function_name->val);
3205 fbc->common.scope->name->val, fbc->common.function_name->val);
3210 fbc->common.scope->name->val, fbc->common.function_name->val);
3288 } else if (func->common.scope &&
3293 func->common.scope->name->val, func->common.function_name->val);
3298 func->common.scope
3443 EG(scope) = NULL; variable
3469 EG(scope) = NULL; variable
3494 EG(scope) = EX(func)->op_array.scope; variable
3594 EG(scope) = fbc->common.scope; variable
3632 EG(scope) = object ? NULL : fbc->common.scope; variable
3634 EG(scope) = fbc->common.scope; variable
3700 EG(scope) = fbc->common.scope; variable
3754 EG(scope) = EX(func)->op_array.scope; variable
5028 EG(scope) = ce; variable
5030 EG(scope) = EX(func)->op_array.scope; variable
7745 zend_class_entry *scope = EX(called_scope); variable
7798 EG(scope) = object ? NULL : fbc->common.scope; variable
7865 EG(scope) = EX(func)->op_array.scope; variable
[all...]
H A Dzend_vm_execute.h469 EG(scope) = EX(func)->op_array.scope;
600 EG(scope) = NULL;
626 EG(scope) = NULL;
651 EG(scope) = EX(func)->op_array.scope;
657 fbc->common.scope ? fbc->common.scope->name->val : "",
658 fbc->common.scope ? "::" : "",
734 zend_error(E_EXCEPTION | E_ERROR, "Cannot call abstract method %s::%s()", fbc->common.scope
1781 zend_class_entry *scope = EX(called_scope); local
[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/ldap/
H A Dldap.c635 static void php_ldap_do_search(INTERNAL_FUNCTION_PARAMETERS, int scope) argument
759 rcs[i] = ldap_search(ld->link, ldap_base_dn, scope, ldap_filter, ldap_attrs, ldap_attrsonly);
800 errno = ldap_search_s(ld->link, ldap_base_dn, scope, ldap_filter, ldap_attrs, ldap_attrsonly, &ldap_res);
/PHP_TRUNK/ext/reflection/
H A Dphp_reflection.c349 static void _function_string(string *str, zend_function *fptr, zend_class_entry *scope, char* indent);
483 && ((mptr->common.fn_flags & ZEND_ACC_PRIVATE) == 0 || mptr->common.scope == ce))
497 && ((mptr->common.fn_flags & ZEND_ACC_PRIVATE) == 0 || mptr->common.scope == ce))
563 && ((mptr->common.fn_flags & ZEND_ACC_PRIVATE) == 0 || mptr->common.scope == ce))
569 || mptr->common.scope == ce
684 old_scope = EG(scope);
685 EG(scope) = fptr->common.scope;
687 EG(scope) = old_scope;
770 static void _function_string(string *str, zend_function *fptr, zend_class_entry *scope, cha argument
[all...]
/PHP_TRUNK/ext/odbc/
H A Dphp_odbc.c295 ZEND_ARG_INFO(0, scope)
3669 /* {{{ proto resource odbc_specialcolumns(resource connection_id, int type, string qualifier, string owner, string table, int scope, int nullable)
3679 SQLUSMALLINT type, scope, nullable; local
3688 scope = (SQLUSMALLINT) vscope;
3715 scope,

Completed in 61 milliseconds