Home
last modified time | relevance | path

Searched refs:scope (Results 26 – 50 of 186) sorted by relevance

12345678

/PHP-7.3/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-7.3/ext/oci8/tests/
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
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_scope3.phpt2 DRCP: oci_pconnect() with scope end when oci8.old_oci_close_semantics ON
31 // This is the first scope for the script
39 // This is the second scope
H A Ddrcp_scope4.phpt2 DRCP: oci_pconnect() with scope end when oci8.old_oci_close_semantics OFF
34 // This is the first scope for the script
42 // This is the second scope
H A Ddrcp_scope5.phpt2 DRCP: oci_pconnect() with scope end when oci8.old_oci_close_semantics ON
34 // This is the first scope for the script
42 // This is the second scope
/PHP-7.3/sapi/phpdbg/
H A Dphpdbg_print.c64 if (method->common.scope) { in phpdbg_print_function_helper()
68 ZSTR_VAL(method->common.scope->name), in phpdbg_print_function_helper()
96 if (method->common.scope) { in phpdbg_print_function_helper()
97 …rnal\" method=\"%s::%s\"", "\tInternal %s::%s()", ZSTR_VAL(method->common.scope->name), ZSTR_VAL(m… in phpdbg_print_function_helper()
129 if (ops->scope) { in PHPDBG_PRINT()
130 …ethod=\"%s::%s\" num=\"%d\"", "Stack in %s::%s() (%d ops)", ZSTR_VAL(ops->scope->name), ZSTR_VAL(o… in PHPDBG_PRINT()
220 zend_class_entry *scope = zend_get_executed_scope(); in PHPDBG_PRINT() local
222 if (scope) { in PHPDBG_PRINT()
226 func_table = &scope->function_table; in PHPDBG_PRINT()
245 (fbc->common.scope) ? "Method" : "Function", in PHPDBG_PRINT()
/PHP-7.3/Zend/tests/
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
H A Dbug45186.phpt2 Bug #45186 (__call depends on __callstatic in class scope)
54 …ts parameter 1 to be a valid callback, cannot access self:: when no class scope is active in %sbug…
H A Dclosure_call.phpt47 // Ensure ->call calls with scope of passed object
64 Warning: Cannot bind closure to scope of internal class stdClass in %s line %d
H A Dbug45186_2.phpt2 Bug #45186.2 (__call depends on __callstatic in class scope)
50 …ts parameter 1 to be a valid callback, cannot access self:: when no class scope is active in %sbug…
H A Dns_061.phpt2 061: use in global scope
H A Dfunc_get_args.phpt10 Warning: func_get_args(): Called from the global scope - no function context in %s on line 3
H A Dhalt03.phpt10 Fatal error: __HALT_COMPILER() can only be used from the outermost scope in %shalt03.php on line %d
H A Dexception_003.phpt2 Throwing exception in global scope
/PHP-7.3/Zend/
H A Dzend_closures.h35 ZEND_API void zend_create_closure(zval *res, zend_function *op_array, zend_class_entry *scope, zend…
36 ZEND_API void zend_create_fake_closure(zval *res, zend_function *op_array, zend_class_entry *scope,…
H A Dzend_inheritance.c211 …("parent")-1 && !strcasecmp(class_name, "parent") && fe->common.scope && fe->common.scope->parent)… in zend_do_perform_type_hint_check()
222 …ent")-1 && !strcasecmp(class_name, "parent") && proto->common.scope && proto->common.scope->parent… in zend_do_perform_type_hint_check()
416 class_name = ZSTR_VAL(fptr->common.scope->name); in zend_append_type_hint()
418 …} else if (!strcasecmp(class_name, "parent") && fptr->common.scope && fptr->common.scope->parent) { in zend_append_type_hint()
445 if (fptr->common.scope) { in zend_get_function_declaration()
447 …smart_str_appendl(&str, ZSTR_VAL(fptr->common.scope->name), strlen(ZSTR_VAL(fptr->common.scope->na… in zend_get_function_declaration()
650 func->common.scope != ce && in do_inherit_method()
1192 if (existing_fn->common.scope == ce) { in zend_add_trait_method()
1274 fn->common.scope = ce; in zend_fixup_trait_method()
1317 aliases[i] = fn->common.scope; in zend_traits_copy_functions()
[all …]
H A Dzend_constants.c233 ZEND_API int zend_verify_const_access(zend_class_constant *c, zend_class_entry *scope) /* {{{ */ in zend_verify_const_access() argument
238 return (c->ce == scope); in zend_verify_const_access()
241 return zend_check_protected(c->ce, scope); in zend_verify_const_access()
322 ZEND_API zval *zend_get_constant_ex(zend_string *cname, zend_class_entry *scope, uint32_t flags) in zend_get_constant_ex() argument
347 if (UNEXPECTED(!scope)) { in zend_get_constant_ex()
351 ce = scope; in zend_get_constant_ex()
353 if (UNEXPECTED(!scope)) { in zend_get_constant_ex()
356 } else if (UNEXPECTED(!scope->parent)) { in zend_get_constant_ex()
360 ce = scope->parent; in zend_get_constant_ex()
380 if (!zend_verify_const_access(c, scope)) { in zend_get_constant_ex()
H A Dzend_builtin_functions.c953 if (scope) { in ZEND_FUNCTION()
980 if (!scope) { in ZEND_FUNCTION()
1103 ce != scope && in add_class_vars()
1141 zend_class_entry *ce, *scope; in ZEND_FUNCTION() local
1266 zend_class_entry *scope; in ZEND_FUNCTION() local
1290 || (scope && in ZEND_FUNCTION()
1292 zend_check_protected(mptr->common.scope, scope)) in ZEND_FUNCTION()
1294 scope == mptr->common.scope)))) { in ZEND_FUNCTION()
2321 if (func->common.scope && func->common.scope->trait_aliases) { in ZEND_FUNCTION()
2338 if (func->common.scope) { in ZEND_FUNCTION()
[all …]
H A Dzend_execute_API.c504 return ex->func->common.scope; in zend_get_executed_scope()
688 func->common.scope ? ZSTR_VAL(func->common.scope->name) : "", in zend_call_function()
689 func->common.scope ? "::" : "", in zend_call_function()
714 func->common.scope ? ZSTR_VAL(func->common.scope->name) : "", in zend_call_function()
715 func->common.scope ? "::" : "", in zend_call_function()
1304 zend_class_entry *ce, *scope; in zend_fetch_class() local
1311 if (UNEXPECTED(!scope)) { in zend_fetch_class()
1314 return scope; in zend_fetch_class()
1317 if (UNEXPECTED(!scope)) { in zend_fetch_class()
1321 if (UNEXPECTED(!scope->parent)) { in zend_fetch_class()
[all …]
/PHP-7.3/ext/reflection/tests/
H A Dbug66430.phpt2 Bug #66430: ReflectionFunction::invoke does not invoke closure with object scope
30 echo "scope cl of c(alpha.bravo): ", $reflectionC->getClosureScopeClass()->getName().PHP_EOL;
41 scope cl of c(alpha.bravo): Alpha
/PHP-7.3/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 --
/PHP-7.3/tests/classes/
H A Dproperty_recreate_private.phpt33 echo "\nUnset superclass's private property, and recreate it as public at global scope:\n";
46 echo "\nUnset a private property, and attempt to recreate at global scope (expecting failure):\n";
66 Unset superclass's private property, and recreate it as public at global scope:
79 Unset a private property, and attempt to recreate at global scope (expecting failure):
H A Dconstants_scope_001.phpt2 ZE2 class constants and scope
25 /* Call the static function and move into the ErrorCodes scope */
/PHP-7.3/ext/xmlrpc/tests/
H A Dbug47818.phpt36 print "Global scope: $method\n";
41 Global scope: add

Completed in 45 milliseconds

12345678