Home
last modified time | relevance | path

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

1234567

/PHP-5.5/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 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_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 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
68 After binding, with scope, no instance
75 After binding, with scope, with instance
H A Dclosure_046.phpt2 Closure 046: Rebinding: preservation of previous scope when "static" given as scope arg (same as cl…
6 /* It's impossible to preserve the previous scope when doing so would break
7 * the invariants that, for non-static closures, having a scope is equivalent
/PHP-5.5/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-5.5/Zend/
H A Dzend_dtrace.c50 const char *scope, *filename, *funcname, *classname; in dtrace_execute_ex() local
51 scope = filename = funcname = classname = NULL; in dtrace_execute_ex()
61 classname = get_active_class_name(&scope TSRMLS_CC); in dtrace_execute_ex()
70 …TRACE_FUNCTION_ENTRY((char *)funcname, (char *)filename, lineno, (char *)classname, (char *)scope); in dtrace_execute_ex()
76 …RACE_FUNCTION_RETURN((char *)funcname, (char *)filename, lineno, (char *)classname, (char *)scope); in dtrace_execute_ex()
H A Dzend_closures.c121 ce = closure->func.common.scope; in ZEND_METHOD()
133 ce = closure->func.common.scope; in ZEND_METHOD()
314 *ce_ptr = closure->func.common.scope; in zend_closure_get_closure()
457 scope = zend_ce_closure; in zend_create_closure()
472 if(func->common.scope != NULL) { in zend_create_closure()
473 if(scope && !instanceof_function(scope, func->common.scope TSRMLS_CC)) { in zend_create_closure()
475 scope = NULL; in zend_create_closure()
480 scope = NULL; in zend_create_closure()
486 scope = NULL; in zend_create_closure()
494 closure->func.common.scope = scope; in zend_create_closure()
[all …]
H A Dzend_API.c2053 if (scope) { in zend_register_functions()
2067 internal_function->scope = scope; in zend_register_functions()
2122 if (scope && (scope->ce_flags & ZEND_ACC_INTERFACE)) { in zend_register_functions()
2148 if (scope) { in zend_register_functions()
2190 if (scope) { in zend_register_functions()
2205 if (scope) { in zend_register_functions()
2844 && priv_fbc->common.scope == EG(scope)) { in zend_is_callable_check_func()
3705 EG(scope) = scope; in zend_update_property()
3801 EG(scope) = scope; in zend_update_static_property()
3910 EG(scope) = scope; in zend_read_property()
[all …]
H A Dzend_constants.c239 if (EG(scope) && EG(scope)->name) { in zend_get_special_constant()
247 …zend_str_tolower_copy(const_name + sizeof("\0__CLASS__")-1, EG(scope)->name, EG(scope)->name_lengt… in zend_get_special_constant()
251 Z_STRVAL((**c).value) = estrndup(EG(scope)->name, EG(scope)->name_length); in zend_get_special_constant()
340 if (!scope) { in zend_get_constant_ex()
342 scope = EG(scope); in zend_get_constant_ex()
344 scope = CG(active_class_entry); in zend_get_constant_ex()
350 if (scope) { in zend_get_constant_ex()
351 ce = scope; in zend_get_constant_ex()
359 if (!scope) { in zend_get_constant_ex()
361 } else if (!scope->parent) { in zend_get_constant_ex()
[all …]
H A Dzend_object_handlers.c245 if ((ce==EG(scope) || property_info->ce == EG(scope)) && EG(scope)) { in zend_verify_property_access()
321 && EG(scope) in zend_get_property_info_quick()
934 if (fbc->common.scope == ce && EG(scope) == ce) { in zend_check_private_int()
946 && fbc->common.scope == EG(scope)) { in zend_check_private_int()
982 while (scope) { in zend_check_protected()
983 if (scope==ce) { in zend_check_protected()
986 scope = scope->parent; in zend_check_protected()
1059 if (EG(scope) && in zend_std_get_method()
1060 is_derived_class(fbc->common.scope, EG(scope)) && in zend_std_get_method()
1066 && priv_fbc->common.scope == EG(scope)) { in zend_std_get_method()
[all …]
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);
H A Dzend_objects.c74 if (object->ce != EG(scope)) { in zend_objects_destroy_object()
80 EG(scope) ? EG(scope)->name : "", in zend_objects_destroy_object()
87 if (!zend_check_protected(zend_get_function_root_class(destructor), EG(scope))) { in zend_objects_destroy_object()
93 EG(scope) ? EG(scope)->name : "", in zend_objects_destroy_object()
/PHP-5.5/ext/oci8/tests/
H A Dconn_attr_5.phpt2 Set and get connection attributes with scope end.
21 echo"**Test - Set and get values for the attributes with scope end ************\n";
23 // Set the attributes in one scope and verify the values from another scope.
26 echo "Get the Values from a different scope \n";
53 **Test - Set and get values for the attributes with scope end ************
61 Get the Values from a different scope
H A Ddrcp_scope2.phpt2 DRCP: oci_new_connect() and oci_connect with scope end when oci8.old_oci_close_semantics OFF
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
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-5.5/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 TSRMLS_CC); in php_set_inet6_addr()
/PHP-5.5/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-5.5/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-5.5/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 ***
/PHP-5.5/ext/standard/tests/general_functions/
H A Dget_defined_vars_basic.phpt7 variables, be them environment, server or user-defined variables, within the scope that
55 echo "\n-- Get variables at global scope --\n";
59 echo "TEST FAILED - Global variables missing at global scope\n";
71 -- Get variables at global scope --

Completed in 37 milliseconds

1234567