/PHP-7.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"; 49 After binding, null scope, no instance 56 After binding, null scope, with instance 63 After binding, with scope, no instance 70 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); 121 Cannot rebind scope of closure created by ReflectionFunctionAbstract::getClosure() 124 Cannot rebind scope of closure created by ReflectionFunctionAbstract::getClosure() 127 Cannot bind closure to scope of internal class stdClass 142 Cannot rebind scope of closure created by ReflectionFunctionAbstract::getClosure() 145 Cannot rebind scope of closure created by ReflectionFunctionAbstract::getClosure() 148 Cannot bind closure to scope of internal class stdClass 166 Cannot rebind scope of closure created by ReflectionFunctionAbstract::getClosure() [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"; 49 After binding, null scope, no instance 56 After binding, null scope, with instance 61 After binding, with scope, no instance 68 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 | 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 | class_name_as_scalar_error_007.phpt | 2 Cannot access self::class when no class scope is active 10 Fatal error: Uncaught Error: Cannot use "self" when no class scope is active in %s:3
|
/PHP-7.3/Zend/ |
H A D | zend_closures.c | 91 if (scope && scope != func->common.scope && scope->type == ZEND_INTERNAL_CLASS) { in zend_valid_closure_binding() 94 ZSTR_VAL(scope->name)); in zend_valid_closure_binding() 98 if (is_fake_closure && scope != func->common.scope) { in zend_valid_closure_binding() 285 call.scope = mptr->common.scope; in zend_create_closure_from_callable() 663 scope = zend_ce_closure; in zend_create_closure() 677 || func->common.scope != scope in zend_create_closure() 685 func->common.scope = scope; in zend_create_closure() 711 if (!func->common.scope) { in zend_create_closure() 714 scope = NULL; in zend_create_closure() 721 closure->func.common.scope = scope; in zend_create_closure() [all …]
|
H A D | zend_object_handlers.c | 339 return (ce == scope || property_info->ce == scope); in zend_verify_property_access() 413 if (scope != ce in zend_get_property_offset() 414 && scope in zend_get_property_offset() 493 && scope in zend_get_property_info() 1074 && fbc->common.scope == scope) { in zend_get_parent_private() 1105 if (fbc->common.scope == ce && scope == ce) { in zend_check_private() 1139 scope = scope->parent; in zend_check_protected() 1169 func->scope = fbc->common.scope; in zend_get_call_trampoline_func() 1231 if (fbc->common.scope != scope || zobj->ce != scope) { in zend_std_get_method() 1352 if (UNEXPECTED(fbc->common.scope != scope)) { in zend_std_get_static_method() [all …]
|
H A D | zend_API.c | 2185 if (scope) { in zend_register_functions() 2200 internal_function->scope = scope; in zend_register_functions() 2254 if (scope) { in zend_register_functions() 2268 if (scope && (scope->ce_flags & ZEND_ACC_INTERFACE)) { in zend_register_functions() 2334 if (scope) { in zend_register_functions() 2384 if (scope) { in zend_register_functions() 2400 if (scope) { in zend_register_functions() 2924 if (!scope) { in zend_is_callable_check_class() 2935 if (!scope) { in zend_is_callable_check_class() 2969 scope = ex ? ex->func->common.scope : NULL; in zend_is_callable_check_class() [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 | 90 zend_class_entry *scope = zend_get_executed_scope(); in zend_objects_destroy_object() local 92 if (object->ce != scope) { in zend_objects_destroy_object() 96 scope ? ZSTR_VAL(scope->name) : ""); in zend_objects_destroy_object() 109 zend_class_entry *scope = zend_get_executed_scope(); in zend_objects_destroy_object() local 111 if (!zend_check_protected(zend_get_function_root_class(destructor), scope)) { in zend_objects_destroy_object() 115 scope ? ZSTR_VAL(scope->name) : ""); in zend_objects_destroy_object()
|
H A D | zend_dtrace.d | 29 …function__entry(char* function_name, char* request_file, int lineno, char* classname, char* scope); 30 …unction__return(char* function_name, char* request_file, int lineno, char* classname, char* scope);
|
/PHP-7.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:
|
H A D | ReflectionMethod_setAccessible.phpt | 96 string(73) "Trying to invoke private method A::aPrivate() from scope ReflectionMethod" 97 string(73) "Trying to invoke private method A::aPrivate() from scope ReflectionMethod" 98 string(79) "Trying to invoke private method A::aPrivateStatic() from scope ReflectionMethod" 99 string(79) "Trying to invoke private method A::aPrivateStatic() from scope ReflectionMethod" 100 string(77) "Trying to invoke protected method A::aProtected() from scope ReflectionMethod" 101 string(77) "Trying to invoke protected method A::aProtected() from scope ReflectionMethod" 102 string(83) "Trying to invoke protected method A::aProtectedStatic() from scope ReflectionMethod" 103 string(83) "Trying to invoke protected method A::aProtectedStatic() from scope ReflectionMethod"
|
/PHP-7.3/ext/oci8/tests/ |
H A D | conn_attr_5.phpt | 2 Set and get connection attributes with scope end. 24 echo"**Test - Set and get values for the attributes with scope end ************\n"; 26 // Set the attributes in one scope and verify the values from another scope. 29 echo "Get the Values from a different scope \n"; 55 **Test - Set and get values for the attributes with scope end ************ 63 Get the Values from a different scope
|
H A D | bug71148.phpt | 74 // Test 3: Bind output parameter within the same scope of execute 79 echo "\nTest 3: Bind output parameter within the same scope of execute\n"; 92 // Test 4: Bind output parameter within the same scope of execute 97 echo "\nTest 4: Bind output parameter within the same scope of execute\n"; 130 // Test 6: Bind IN OUT parameter within the same scope of execute 137 echo "\nTest 6: Bind IN OUT parameter within the same scope of execute\n"; 175 Test 3: Bind output parameter within the same scope of execute 179 Test 4: Bind output parameter within the same scope of execute 187 Test 6: Bind IN OUT parameter within the same scope of execute
|
/PHP-7.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 if (IS_LONG == is_numeric_string(scope, strlen(scope), &lval, &dval, 0)) { in php_set_inet6_addr() 73 php_string_to_if_index(scope, &scope_id); in php_set_inet6_addr()
|
/PHP-7.3/ext/standard/tests/class_object/ |
H A D | get_class_methods_basic_003.phpt | 36 echo "Accessing I from global scope:\n"; 38 echo "Accessing C from global scope:\n"; 44 Accessing I from global scope: 49 Accessing C from global scope:
|
/PHP-7.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):
|
H A D | __call_006.phpt | 31 echo "\n\n---> Invoke __call via scope resolution operator within instance.\n"; 38 echo "\n\n---> Invoke __call via scope resolution operator within child instance.\n"; 61 ---> Invoke __call via scope resolution operator within instance. 67 ---> Invoke __call via scope resolution operator within child instance.
|
H A D | __call_007.phpt | 31 echo "\n\n---> Invoke __call via scope resolution operator within instance.\n"; 38 echo "\n\n---> Invoke __call via scope resolution operator within child instance.\n"; 62 ---> Invoke __call via scope resolution operator within instance. 68 ---> Invoke __call via scope resolution operator within child instance.
|