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

/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/Zend/
H A Dzend_constants.c297 ZEND_API zval *zend_get_constant_ex(zend_string *cname, zend_class_entry *scope, zend_ulong flags) argument
325 if (!scope) {
327 scope = EG(scope);
329 scope = CG(active_class_entry);
335 if (UNEXPECTED(!scope)) {
336 zend_throw_error(NULL, "Cannot access self:: when no class scope is active");
339 ce = scope;
342 if (UNEXPECTED(!scope)) {
343 zend_throw_error(NULL, "Cannot access parent:: when no class scope i
[all...]
H A Dzend_globals.h164 zend_class_entry *scope; member in struct:_zend_executor_globals
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_compile.h339 zend_class_entry *scope; member in struct:_zend_op_array
390 zend_class_entry *scope; member in struct:_zend_internal_function
401 #define ZEND_FN_SCOPE_NAME(function) ((function) && (function)->common.scope ? ZSTR_VAL((function)->common.scope->name) : "")
411 zend_class_entry *scope; member in struct:_zend_function::__anon8
H A Dzend_vm_def.h2346 EG(scope) = EX(func)->op_array.scope;
3063 if (Z_OBJ(EX(This)) && Z_OBJ(EX(This))->ce != ce->constructor->common.scope && (ce->constructor->common.fn_flags & ZEND_ACC_PRIVATE)) {
3081 ZSTR_VAL(fbc->common.scope->name), ZSTR_VAL(fbc->common.function_name));
3091 ZSTR_VAL(fbc->common.scope->name), ZSTR_VAL(fbc->common.function_name));
3200 ZSTR_VAL(fbc->common.scope->name), ZSTR_VAL(fbc->common.function_name));
3208 ZSTR_VAL(fbc->common.scope->name), ZSTR_VAL(fbc->common.function_name));
3297 ZSTR_VAL(fbc->common.scope->name), ZSTR_VAL(fbc->common.function_name));
3305 ZSTR_VAL(fbc->common.scope->name), ZSTR_VAL(fbc->common.function_name));
3390 ZSTR_VAL(func->common.scope
3531 EG(scope) = NULL; variable
3557 EG(scope) = NULL; variable
3582 EG(scope) = EX(func)->op_array.scope; variable
3679 EG(scope) = fbc->common.scope; variable
3715 EG(scope) = fbc->common.scope; variable
3775 EG(scope) = fbc->common.scope; variable
3834 EG(scope) = EX(func)->op_array.scope; variable
5076 EG(scope) = ce; variable
5078 EG(scope) = EX(func)->op_array.scope; variable
7815 zend_class_entry *scope = EX(called_scope); variable
7932 EG(scope) = EX(func)->op_array.scope; variable
[all...]
H A Dzend_vm_execute.h489 EG(scope) = EX(func)->op_array.scope;
616 EG(scope) = NULL;
642 EG(scope) = NULL;
667 EG(scope) = EX(func)->op_array.scope;
673 fbc->common.scope ? ZSTR_VAL(fbc->common.scope->name) : "",
674 fbc->common.scope ? "::" : "",
747 zend_throw_error(NULL, "Cannot call abstract method %s::%s()", ZSTR_VAL(fbc->common.scope
1718 zend_class_entry *scope = EX(called_scope); local
[all...]
H A Dzend_execute_API.c179 EG(scope) = NULL;
426 zend_class_entry *ce = func->common.scope;
547 ZEND_API int zval_update_constant_ex(zval *p, zend_bool inline_change, zend_class_entry *scope) /* {{{ */ argument
564 if (EG(scope) && EG(scope)->name) {
565 ZVAL_STR_COPY(p, EG(scope)->name);
569 } else if (UNEXPECTED((const_value = zend_get_constant_ex(Z_STR_P(p), scope, Z_CONST_FLAGS_P(p))) == NULL)) {
641 if (UNEXPECTED(zend_ast_evaluate(&tmp, Z_ASTVAL_P(p), scope) != SUCCESS)) {
710 orig_scope = EG(scope);
782 zend_throw_error(NULL, "Cannot call abstract method %s::%s()", ZSTR_VAL(func->common.scope
[all...]
H A Dzend_object_handlers.c279 return (ce == EG(scope) || property_info->ce == EG(scope));
282 return zend_check_protected(property_info->ce, EG(scope));
346 /* Try to look in the scope instead */
352 if (EG(scope) != ce
353 && EG(scope)
354 && is_derived_class(ce, EG(scope))
355 && (zv = zend_hash_find(&EG(scope)->properties_info, member)) != NULL
423 /* Try to look in the scope instead */
429 if (EG(scope) !
1009 zend_check_protected(zend_class_entry *ce, zend_class_entry *scope) argument
[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) {
132 /* use scope of passed object */
133 my_function.common.scope = Z_OBJCE_P(newthis);
136 /* Runtime cache relies on bound scope to be immutable, hence we need a separate rt cache in case scope changed */
137 if (ZEND_USER_CODE(my_function.type) && closure->func.common.scope != Z_OBJCE_P(newthis)) {
150 } else if (ZEND_USER_CODE(my_function.type) && closure->func.common.scope !
520 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_API.c203 const char *class_name = active_function->common.scope ? ZSTR_VAL(active_function->common.scope->name) : "";
796 const char *class_name = active_function->common.scope
797 ? ZSTR_VAL(active_function->common.scope->name) : "";
876 const char *class_name = active_function->common.scope ? ZSTR_VAL(active_function->common.scope->name) : "";
1012 * Z_OBJ(EG(This)) to NULL when calling an internal function with common.scope == NULL.
1015 zend_bool is_method = EG(current_execute_data)->func->common.scope != NULL;
1099 zend_class_entry *old_scope = EG(scope);
1103 EG(scope)
1155 zend_class_entry **scope = EG(current_execute_data) ? &EG(scope) : &CG(active_class_entry); local
2129 zend_register_functions(zend_class_entry *scope, const zend_function_entry *functions, HashTable *function_table, int type) argument
2886 zend_class_entry *scope; local
3814 zend_update_property_ex(zend_class_entry *scope, zval *object, zend_string *name, zval *value) argument
3831 zend_update_property(zend_class_entry *scope, zval *object, const char *name, size_t name_length, zval *value) argument
3849 zend_update_property_null(zend_class_entry *scope, zval *object, const char *name, size_t name_length) argument
3858 zend_update_property_bool(zend_class_entry *scope, zval *object, const char *name, size_t name_length, zend_long value) argument
3867 zend_update_property_long(zend_class_entry *scope, zval *object, const char *name, size_t name_length, zend_long value) argument
3876 zend_update_property_double(zend_class_entry *scope, zval *object, const char *name, size_t name_length, double value) argument
3885 zend_update_property_str(zend_class_entry *scope, zval *object, const char *name, size_t name_length, zend_string *value) argument
3894 zend_update_property_string(zend_class_entry *scope, zval *object, const char *name, size_t name_length, const char *value) argument
3904 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
3914 zend_update_static_property(zend_class_entry *scope, const char *name, size_t name_length, zval *value) argument
3953 zend_update_static_property_null(zend_class_entry *scope, const char *name, size_t name_length) argument
3962 zend_update_static_property_bool(zend_class_entry *scope, const char *name, size_t name_length, zend_long value) argument
3971 zend_update_static_property_long(zend_class_entry *scope, const char *name, size_t name_length, zend_long value) argument
3980 zend_update_static_property_double(zend_class_entry *scope, const char *name, size_t name_length, double value) argument
3989 zend_update_static_property_string(zend_class_entry *scope, const char *name, size_t name_length, const char *value) argument
3999 zend_update_static_property_stringl(zend_class_entry *scope, const char *name, size_t name_length, const char *value, size_t value_len) argument
4009 zend_read_property(zend_class_entry *scope, zval *object, const char *name, size_t name_length, zend_bool silent, zval *rv) argument
4029 zend_read_static_property(zend_class_entry *scope, const char *name, size_t name_length, zend_bool silent) argument
[all...]
H A Dzend_dtrace.c60 const char *scope, *filename, *funcname, *classname; local
61 scope = filename = funcname = classname = NULL;
71 classname = get_active_class_name(&scope);
80 DTRACE_FUNCTION_ENTRY((char *)funcname, (char *)filename, lineno, (char *)classname, (char *)scope);
86 DTRACE_FUNCTION_RETURN((char *)funcname, (char *)filename, lineno, (char *)classname, (char *)scope);
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_opcode.h34 zend_class_entry *scope; member in struct:_phpdbg_oplog_entry
/PHP_TRUNK/ext/odbc/
H A Dphp_odbc.c295 ZEND_ARG_INFO(0, scope)
3698 /* {{{ proto resource odbc_specialcolumns(resource connection_id, int type, string qualifier, string owner, string table, int scope, int nullable)
3708 SQLUSMALLINT type, scope, nullable; local
3717 scope = (SQLUSMALLINT) vscope;
3744 scope,
/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/ldap/
H A Dldap.c693 static void php_ldap_do_search(INTERNAL_FUNCTION_PARAMETERS, int scope) argument
817 ldap_search_ext(ld->link, ldap_base_dn, scope, ldap_filter, ldap_attrs, ldap_attrsonly, NULL, NULL, NULL, ldap_sizelimit, &rcs[i]);
858 errno = ldap_search_ext_s(ld->link, ldap_base_dn, scope, ldap_filter, ldap_attrs, ldap_attrsonly, NULL, NULL, NULL, ldap_sizelimit, &ldap_res);

Completed in 65 milliseconds