Home
last modified time | relevance | path

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

12345678

/PHP-7.0/Zend/tests/
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
57 After binding, null scope, with instance
64 After binding, with scope, no instance
71 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);
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 Dbug45862.phpt22 echo "\n From parent scope\n";
25 echo "\n From child scope\n";
32 From parent scope
39 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 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
H A Dclass_name_as_scalar_error_007.phpt2 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.0/Zend/
H A Dzend_closures.c90 ZSTR_VAL(func->common.scope->name), in zend_valid_closure_binding()
101 if (scope && scope != func->common.scope && scope->type == ZEND_INTERNAL_CLASS) { in zend_valid_closure_binding()
104 ZSTR_VAL(scope->name)); in zend_valid_closure_binding()
108 if ((func->common.fn_flags & ZEND_ACC_FAKE_CLOSURE) && scope != func->common.scope) { in zend_valid_closure_binding()
208 ce = closure->func.common.scope; in ZEND_METHOD()
217 ce = closure->func.common.scope; in ZEND_METHOD()
568 scope = zend_ce_closure; in zend_create_closure()
603 if (!func->common.scope) { in zend_create_closure()
606 scope = NULL; in zend_create_closure()
613 closure->func.common.scope = scope; in zend_create_closure()
[all …]
H A Dzend_API.c2148 if (scope) { in zend_register_functions()
2163 internal_function->scope = scope; in zend_register_functions()
2329 if (scope) { in zend_register_functions()
2885 scope = ex ? ex->func->common.scope : NULL; in zend_is_callable_check_class()
3034 && priv_fbc->common.scope == EG(scope)) { in zend_is_callable_check_func()
3816 EG(scope) = scope; in zend_update_property_ex()
3833 EG(scope) = scope; in zend_update_property()
3860 EG(scope) = scope; in zend_unset_property()
3935 EG(scope) = scope; in zend_update_static_property()
4029 EG(scope) = scope; in zend_read_property()
[all …]
H A Dzend_dtrace.c60 const char *scope, *filename, *funcname, *classname; in dtrace_execute_ex() local
61 scope = filename = funcname = classname = NULL; in dtrace_execute_ex()
71 classname = get_active_class_name(&scope); in dtrace_execute_ex()
80 …TRACE_FUNCTION_ENTRY((char *)funcname, (char *)filename, lineno, (char *)classname, (char *)scope); in dtrace_execute_ex()
86 …RACE_FUNCTION_RETURN((char *)funcname, (char *)filename, lineno, (char *)classname, (char *)scope); in dtrace_execute_ex()
H A Dzend_objects.c94 if (object->ce != EG(scope)) { in zend_objects_destroy_object()
101 EG(scope) ? ZSTR_VAL(EG(scope)->name) : ""); in zend_objects_destroy_object()
106 EG(scope) ? ZSTR_VAL(EG(scope)->name) : ""); in zend_objects_destroy_object()
113 if (!zend_check_protected(zend_get_function_root_class(destructor), EG(scope))) { in zend_objects_destroy_object()
120 EG(scope) ? ZSTR_VAL(EG(scope)->name) : ""); in zend_objects_destroy_object()
125 EG(scope) ? ZSTR_VAL(EG(scope)->name) : ""); in zend_objects_destroy_object()
H A Dzend_object_handlers.c267 return (ce == EG(scope) || property_info->ce == EG(scope)); in zend_verify_property_access()
341 && EG(scope) in zend_get_property_offset()
418 && EG(scope) in zend_get_property_info()
1026 if (fbc->common.scope == ce && EG(scope) == ce) { in zend_check_private_int()
1039 && fbc->common.scope == EG(scope)) { in zend_check_private_int()
1076 while (scope) { in zend_check_protected()
1080 scope = scope->parent; in zend_check_protected()
1112 func->scope = fbc->common.scope; in zend_get_call_trampoline_func()
1190 is_derived_class(fbc->common.scope, EG(scope)) && in zend_std_get_method()
1195 && priv_fbc->common.scope == EG(scope)) { in zend_std_get_method()
[all …]
H A Dzend_closures.h31 ZEND_API void zend_create_closure(zval *res, zend_function *op_array, zend_class_entry *scope, zend…
32 ZEND_API void zend_create_fake_closure(zval *res, zend_function *op_array, zend_class_entry *scope,…
H A Dzend_dtrace.d31 …function__entry(char* function_name, char* request_file, int lineno, char* classname, char* scope);
32 …unction__return(char* function_name, char* request_file, int lineno, char* classname, char* scope);
/PHP-7.0/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:
H A DReflectionMethod_setAccessible.phpt96 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.0/ext/oci8/tests/
H A Dconn_attr_5.phpt2 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";
56 **Test - Set and get values for the attributes with scope end ************
64 Get the Values from a different scope
H A Dbug71148.phpt74 // 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
H A Ddrcp_scope1.phpt2 DRCP: oci_new_connect() and oci_connect() with scope end when oci8.old_oci_close_semantics ON
13 // Scope considered here is the functional scope
17 // When the scope ends the txn is rolled back and hence the updated value
41 //This is the first scope for the script
57 // This is the second scope
/PHP-7.0/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 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.0/ext/standard/tests/class_object/
H A Dget_class_methods_basic_003.phpt36 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.0/tests/classes/
H A Dproperty_recreate_protected.phpt22 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.phpt31 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.phpt31 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.
66 ---> Invoke __call via scope resolution operator within child instance.
/PHP-7.0/ext/standard/tests/array/
H A Dcompact_variation2.phpt2 …t compact() function: ensure compact() doesn't pick up variables declared outside of current scope.
10 echo "*** Testing compact() : usage variations - variables outside of current scope ***\n";
27 *** Testing compact() : usage variations - variables outside of current scope ***

Completed in 94 milliseconds

12345678