Home
last modified time | relevance | path

Searched refs:scope (Results 1 – 25 of 235) sorted by relevance

12345678910

/php-src/Zend/tests/readonly_props/
H A Dvariation.phpt80 if ($scope) {
95 Init: 1, scope: 1, op: r: 1
99 Init: 1, scope: 1, op: is: 1
101 Init: 1, scope: 0, op: r: 1
105 Init: 1, scope: 0, op: is: 1
108 Init: 0, scope: 1, op: w: done
111 Init: 0, scope: 1, op: is: 0
112 Init: 0, scope: 1, op: us: done
114 Init: 0, scope: 0, op: w: Cannot initialize readonly property Test::$prop from global scope
117 Init: 0, scope: 0, op: is: 0
[all …]
H A Dinitialization_scope.phpt2 Initialization can only happen from private scope
67 Cannot initialize readonly property A::$prop from global scope
68 Cannot initialize readonly property A::$prop from scope B
72 Cannot initialize readonly property Y::$prop from scope X
/php-src/ext/dom/lexbor/lexbor/core/
H A Dbst.c101 if (*scope == NULL) { in lexbor_bst_insert()
106 entry = *scope; in lexbor_bst_insert()
150 if (*scope == NULL) { in lexbor_bst_insert_not_exists()
153 return *scope; in lexbor_bst_insert_not_exists()
156 entry = *scope; in lexbor_bst_insert_not_exists()
192 return scope; in lexbor_bst_search()
195 scope = scope->right; in lexbor_bst_search()
198 scope = scope->left; in lexbor_bst_search()
216 scope = scope->right; in lexbor_bst_search_close()
219 max = scope; in lexbor_bst_search_close()
[all …]
H A Davl.c251 *scope = node; in lexbor_avl_node_balance()
263 if (*scope == NULL) { in lexbor_avl_insert()
265 return *scope; in lexbor_avl_insert()
268 node = *scope; in lexbor_avl_insert()
370 *scope = node; in lexbor_avl_rotate_for_delete()
402 lexbor_avl_node_t *node = *scope; in lexbor_avl_remove()
463 if (scope == NULL || *scope == NULL) { in lexbor_avl_foreach()
467 node = *scope; in lexbor_avl_foreach()
492 root = *scope; in lexbor_avl_foreach()
560 if (scope == NULL) { in lexbor_avl_foreach_recursion()
[all …]
H A Davl.h66 lexbor_avl_insert(lexbor_avl_t *avl, lexbor_avl_node_t **scope,
70 lexbor_avl_search(lexbor_avl_t *avl, lexbor_avl_node_t *scope, size_t type);
73 lexbor_avl_remove(lexbor_avl_t *avl, lexbor_avl_node_t **scope, size_t type);
80 lexbor_avl_foreach(lexbor_avl_t *avl, lexbor_avl_node_t **scope,
84 lexbor_avl_foreach_recursion(lexbor_avl_t *avl, lexbor_avl_node_t *scope,
H A Dbst_map.c82 lexbor_bst_map_search(lexbor_bst_map_t *bst_map, lexbor_bst_entry_t *scope, in lexbor_bst_map_search() argument
90 bst_entry = lexbor_bst_search(bst_map->bst, scope, hash_id); in lexbor_bst_map_search()
113 lexbor_bst_entry_t **scope, in lexbor_bst_map_insert() argument
118 entry = lexbor_bst_map_insert_not_exists(bst_map, scope, key, key_len); in lexbor_bst_map_insert()
130 lexbor_bst_entry_t **scope, in lexbor_bst_map_insert_not_exists() argument
138 bst_entry = lexbor_bst_insert_not_exists(bst_map->bst, scope, hash_id); in lexbor_bst_map_insert_not_exists()
195 lexbor_bst_map_remove(lexbor_bst_map_t *bst_map, lexbor_bst_entry_t **scope, in lexbor_bst_map_remove() argument
203 bst_entry = lexbor_bst_search(bst_map->bst, *scope, hash_id); in lexbor_bst_map_remove()
216 lexbor_bst_remove_by_pointer(bst_map->bst, bst_entry, scope); in lexbor_bst_map_remove()
H A Dbst_map.h49 lexbor_bst_map_search(lexbor_bst_map_t *bst_map, lexbor_bst_entry_t *scope,
53 lexbor_bst_map_insert(lexbor_bst_map_t *bst_map, lexbor_bst_entry_t **scope,
58 lexbor_bst_entry_t **scope,
62 lexbor_bst_map_remove(lexbor_bst_map_t *bst_map, lexbor_bst_entry_t **scope,
H A Dbst.h65 lexbor_bst_insert(lexbor_bst_t *bst, lexbor_bst_entry_t **scope,
69 lexbor_bst_insert_not_exists(lexbor_bst_t *bst, lexbor_bst_entry_t **scope,
74 lexbor_bst_search(lexbor_bst_t *bst, lexbor_bst_entry_t *scope, size_t size);
77 lexbor_bst_search_close(lexbor_bst_t *bst, lexbor_bst_entry_t *scope,
/php-src/Zend/tests/
H A Dbug70918.phpt2 Bug #70918 (Segfault using static outside of class scope)
42 string(52) "Cannot access "static" when no class scope is active"
43 string(52) "Cannot access "parent" when no class scope is active"
44 string(50) "Cannot access "self" when no class scope is active"
45 string(52) "Cannot access "static" when no class scope is active"
46 string(52) "Cannot access "static" when no class scope is active"
47 string(52) "Cannot access "static" when no class scope is active"
H A Dbug78658.phpt8 $scope = "AAAA";
9 $scope = "{$scope}BBBB";
10 $c->bindTo(new stdClass, $scope);
H A Dclosure_044.phpt5 /* A non-static closure has a bound instance if it has a scope
6 * and doesn't have an instance if it has no scope */
24 echo "After binding, null scope, no instance", "\n";
28 echo "After binding, null scope, with instance", "\n";
32 echo "After binding, with scope, no instance", "\n";
36 echo "After binding, with scope, with instance", "\n";
50 After binding, null scope, no instance
58 After binding, null scope, with instance
65 After binding, with scope, no instance
73 After binding, with scope, with instance
H A Dclosure_061.phpt97 foreach ($bindings as list($obj, $scope)) {
99 $scopeStr = $scope ? "$scope::class" : "null";
102 $ret = $c->bindTo($obj, $scope);
166 Cannot rebind scope of closure created from method
169 Cannot rebind scope of closure created from method
172 Cannot rebind scope of closure created from method
190 Cannot rebind scope of closure created from method
193 Cannot rebind scope of closure created from method
196 Cannot rebind scope of closure created from method
217 Cannot rebind scope of closure created from method
[all …]
H A Dbug45862.phpt22 echo "\n From parent scope\n";
25 echo "\n From child scope\n";
31 From parent scope
38 From child scope
H A Dclosure_043.phpt24 echo "After binding, null scope, no instance", "\n";
28 echo "After binding, null scope, with instance", "\n";
32 echo "After binding, with scope, no instance", "\n";
36 echo "After binding, with scope, with instance", "\n";
50 After binding, null scope, no instance
57 After binding, null scope, with instance
62 After binding, with scope, no instance
69 After binding, with scope, with instance
H A Dself_method_or_prop_outside_class.phpt33 Cannot access "self" when no class scope is active
34 Cannot access "self" when no class scope is active
35 Cannot access "self" when no class scope is active
36 Cannot access "self" when no class scope is active
H A Dclass_name_as_scalar_error_007.phpt2 Cannot access self::class when no class scope is active
19 Cannot use "self" in the global scope
20 Cannot use "self" in the global scope
H A Dclosure_038.phpt2 Closure 038: Rebinding closures, change scope, different runtime type
31 echo "Testing with scope given as object", "\n";
38 echo "Testing with scope as string", "\n";
51 Testing with scope given as object
54 Testing with scope as string
H A Dclosure_039.phpt2 Closure 039: Rebinding closures, change scope, same runtime type
31 echo "Testing with scope given as object", "\n";
38 echo "Testing with scope as string", "\n";
51 Testing with scope given as object
54 Testing with scope as string
/php-src/Zend/
H A Dzend_closures.c102 if (scope && scope != func->common.scope && scope->type == ZEND_INTERNAL_CLASS) { in zend_valid_closure_binding()
109 if (is_fake_closure && scope != func->common.scope) { in zend_valid_closure_binding()
367 call.scope = mptr->common.scope; in zend_create_closure_from_callable()
450 if (lhs->func.common.scope != rhs->func.common.scope) { in zend_closure_compare()
777 || func->common.scope != scope in zend_create_closure_ex()
782 && (func->common.scope == scope || in zend_create_closure_ex()
786 if (func->common.scope != scope) { in zend_create_closure_ex()
787 func->common.scope = scope; in zend_create_closure_ex()
824 closure->func.common.scope = scope; in zend_create_closure_ex()
826 if (scope) { in zend_create_closure_ex()
[all …]
H A Dzend_object_handlers.c252 if (scope != ce && scope && is_derived_class(ce, scope)) { in zend_get_parent_private_property()
306 scope ? "scope " : "global scope", scope ? ZSTR_VAL(scope->name) : ""); in zend_readonly_property_modification_scope_error()
794 if (scope && is_derived_class(ce, scope)) { in verify_readonly_initialization_access()
1275 if (scope != ce && scope && is_derived_class(ce, scope)) { in zend_get_parent_private_method()
1280 && fbc->common.scope == scope) { in zend_get_parent_private_method()
1312 scope = scope->parent; in zend_check_protected()
1347 func->scope = fbc->common.scope; in zend_get_call_trampoline_func()
1388 scope ? ZSTR_VAL(scope->name) : "" in zend_bad_method_call()
1436 if (fbc->common.scope != scope) { in zend_std_get_method()
1511 if (UNEXPECTED(fbc->common.scope != scope)) { in zend_std_get_static_method()
[all …]
H A Dzend_dtrace.c58 const char *scope, *filename, *funcname, *classname; in dtrace_execute_ex() local
59 scope = filename = funcname = classname = NULL; in dtrace_execute_ex()
69 classname = get_active_class_name(&scope); in dtrace_execute_ex()
78 …TRACE_FUNCTION_ENTRY((char *)funcname, (char *)filename, lineno, (char *)classname, (char *)scope); in dtrace_execute_ex()
84 …RACE_FUNCTION_RETURN((char *)funcname, (char *)filename, lineno, (char *)classname, (char *)scope); in dtrace_execute_ex()
H A Dzend_objects.c110 zend_class_entry *scope = zend_get_executed_scope(); in zend_objects_destroy_object() local
112 if (object->ce != scope) { in zend_objects_destroy_object()
116 scope ? "scope " : "global scope", in zend_objects_destroy_object()
117 scope ? ZSTR_VAL(scope->name) : "" in zend_objects_destroy_object()
131 zend_class_entry *scope = zend_get_executed_scope(); in zend_objects_destroy_object() local
133 if (!zend_check_protected(zend_get_function_root_class(destructor), scope)) { in zend_objects_destroy_object()
137 scope ? "scope " : "global scope", in zend_objects_destroy_object()
138 scope ? ZSTR_VAL(scope->name) : "" in zend_objects_destroy_object()
/php-src/ext/reflection/tests/
H A DReflectionProperty_constructor_variation1.phpt30 echo "--> Reflect inherited private from global scope:\n";
38 echo "\n\n--> Reflect inherited private from declaring scope:\n";
41 echo "\n\n--> Reflect inherited private from declaring scope via subclass:\n";
48 --> Reflect inherited private from global scope:
51 --> Reflect inherited private from declaring scope:
54 --> Reflect inherited private from declaring scope via subclass:
/php-src/ext/sockets/
H A Dsockaddr_conv.c23 char *scope = strchr(string, '%'); in php_set_inet6_addr() local
63 if (scope) { in php_set_inet6_addr()
68 scope++; in php_set_inet6_addr()
70 if (IS_LONG == is_numeric_string(scope, strlen(scope), &lval, &dval, 0)) { in php_set_inet6_addr()
75 php_string_to_if_index(scope, &scope_id); in php_set_inet6_addr()
/php-src/ext/standard/tests/class_object/
H A Dget_class_methods_basic_003.phpt30 echo "Accessing I from global scope:\n";
32 echo "Accessing C from global scope:\n";
38 Accessing I from global scope:
43 Accessing C from global scope:

Completed in 58 milliseconds

12345678910