/PHP-8.3/Zend/tests/readonly_props/ |
H A D | variation.phpt | 80 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 D | initialization_scope.phpt | 2 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-8.3/Zend/tests/ |
H A D | bug70918.phpt | 2 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 D | bug78658.phpt | 8 $scope = "AAAA"; 9 $scope = "{$scope}BBBB"; 10 $c->bindTo(new stdClass, $scope);
|
H A D | closure_044.phpt | 5 /* 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 D | closure_061.phpt | 97 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 D | bug45862.phpt | 22 echo "\n From parent scope\n"; 25 echo "\n From child scope\n"; 31 From parent scope 38 From child scope
|
H A D | closure_043.phpt | 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 57 After binding, null scope, with instance 62 After binding, with scope, no instance 69 After binding, with scope, with instance
|
H A D | self_method_or_prop_outside_class.phpt | 33 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 D | class_name_as_scalar_error_007.phpt | 2 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 D | closure_038.phpt | 2 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 D | closure_039.phpt | 2 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
|
H A D | func_get_args.phpt | 2 Testing func_get_args() throws error when called from the global scope 14 func_get_args() cannot be called from the global scope
|
/PHP-8.3/Zend/ |
H A D | zend_closures.c | 102 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() 449 if (lhs->func.common.scope != rhs->func.common.scope) { in zend_closure_compare() 766 || func->common.scope != scope in zend_create_closure_ex() 771 && (func->common.scope == scope || in zend_create_closure_ex() 775 if (func->common.scope != scope) { in zend_create_closure_ex() 776 func->common.scope = scope; in zend_create_closure_ex() 813 closure->func.common.scope = scope; in zend_create_closure_ex() 815 if (scope) { in zend_create_closure_ex() [all …]
|
H A D | zend_object_handlers.c | 253 if (scope != ce && scope && is_derived_class(ce, scope)) { in zend_get_parent_private_property() 307 scope ? "scope " : "global scope", scope ? ZSTR_VAL(scope->name) : ""); in zend_readonly_property_modification_scope_error() 801 if (scope && is_derived_class(ce, scope)) { in verify_readonly_initialization_access() 1282 if (scope != ce && scope && is_derived_class(ce, scope)) { in zend_get_parent_private_method() 1287 && fbc->common.scope == scope) { in zend_get_parent_private_method() 1319 scope = scope->parent; in zend_check_protected() 1357 func->scope = fbc->common.scope; in zend_get_call_trampoline_func() 1399 scope ? ZSTR_VAL(scope->name) : "" in zend_bad_method_call() 1447 if (fbc->common.scope != scope) { in zend_std_get_method() 1522 if (UNEXPECTED(fbc->common.scope != scope)) { in zend_std_get_static_method() [all …]
|
H A D | zend_dtrace.c | 58 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 D | zend_objects.c | 110 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()
|
H A D | zend_attributes.c | 38 void validate_attribute(zend_attribute *attr, uint32_t target, zend_class_entry *scope) in validate_attribute() argument 42 uint32_t zend_attribute_attribute_get_flags(zend_attribute *attr, zend_class_entry *scope) in zend_attribute_attribute_get_flags() argument 48 if (FAILURE == zend_get_attribute_value(&flags, attr, 0, scope)) { in zend_attribute_attribute_get_flags() 75 zend_attribute *attr, uint32_t target, zend_class_entry *scope) in validate_allow_dynamic_properties() argument 77 if (scope->ce_flags & ZEND_ACC_TRAIT) { in validate_allow_dynamic_properties() 80 if (scope->ce_flags & ZEND_ACC_INTERFACE) { in validate_allow_dynamic_properties() 83 if (scope->ce_flags & ZEND_ACC_READONLY_CLASS) { in validate_allow_dynamic_properties() 85 ZSTR_VAL(scope->name) in validate_allow_dynamic_properties() 88 scope->ce_flags |= ZEND_ACC_ALLOW_DYNAMIC_PROPERTIES; in validate_allow_dynamic_properties() 203 …sult zend_get_attribute_value(zval *ret, zend_attribute *attr, uint32_t i, zend_class_entry *scope) in zend_get_attribute_value() argument [all …]
|
/PHP-8.3/ext/reflection/tests/ |
H A D | ReflectionProperty_constructor_variation1.phpt | 30 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-8.3/ext/sockets/ |
H A D | sockaddr_conv.c | 23 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-8.3/ext/oci8/tests/ |
H A D | conn_attr_5.phpt | 2 Set and get connection attributes with scope end. 28 echo"**Test - Set and get values for the attributes with scope end ************\n"; 30 // Set the attributes in one scope and verify the values from another scope. 33 echo "Get the Values from a different scope \n"; 59 **Test - Set and get values for the attributes with scope end ************ 67 Get the Values from a different scope
|
H A D | bug71148.phpt | 77 // Test 3: Bind output parameter within the same scope of execute 82 echo "\nTest 3: Bind output parameter within the same scope of execute\n"; 95 // Test 4: Bind output parameter within the same scope of execute 100 echo "\nTest 4: Bind output parameter within the same scope of execute\n"; 133 // Test 6: Bind IN OUT parameter within the same scope of execute 140 echo "\nTest 6: Bind IN OUT parameter within the same scope of execute\n"; 176 Test 3: Bind output parameter within the same scope of execute 180 Test 4: Bind output parameter within the same scope of execute 188 Test 6: Bind IN OUT parameter within the same scope of execute
|
/PHP-8.3/ext/standard/tests/class_object/ |
H A D | get_class_methods_basic_003.phpt | 30 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:
|
/PHP-8.3/ext/standard/tests/array/ |
H A D | compact_variation2.phpt | 2 …t compact() function: ensure compact() doesn't pick up variables declared outside of current scope. 5 echo "*** Testing compact() : usage variations - variables outside of current scope ***\n"; 21 *** Testing compact() : usage variations - variables outside of current scope ***
|
/PHP-8.3/tests/classes/ |
H A D | property_recreate_protected.phpt | 22 echo "Unset and recreate a protected property from property's declaring class scope:\n"; 33 echo "\nUnset a protected property, and attempt to recreate it outside of scope (expected failure):… 39 Unset and recreate a protected property from property's declaring class scope: 51 Unset a protected property, and attempt to recreate it outside of scope (expected failure):
|