You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
magic_offset= (tpl->scope_stack_pos==magic_stack ? 2 : 1); /* if we're at the initial stack level, subtract 2 to get to the parent, since we just created a new stack level */
2349
-
if (BLITZ_DEBUG) php_printf("magic_scope: resetting stack key '%s' in scope::%lu -> %lu\n", key, magic_stack, (magic_stack>magic_offset ? magic_stack-magic_offset : 0));
2346
+
if (BLITZ_DEBUG) php_printf("predefined path _parent: resetting stack key '%s' in scope::%lu -> %lu\n", key, magic_stack, (magic_stack>magic_offset ? magic_stack-magic_offset : 0));
2350
2347
magic_stack= (magic_stack>magic_offset ? magic_stack-magic_offset : 0); /* keep track of the current magic scope to enable things like _parent._parent */
2351
2348
*zparam=&tpl->scope_stack[magic_stack];
2352
2349
} elseif (0==root_found) { /* globals or params? */
@@ -3456,9 +3453,7 @@ static int blitz_exec_nodes(blitz_tpl *tpl, blitz_node *first_child,
3456
3453
}
3457
3454
}
3458
3455
3459
-
if (BLITZ_G(scope_lookup_limit) ||BLITZ_G(enable_magic_scope)) {
3460
-
BLITZ_SCOPE_STACK_PUSH(tpl, parent_params);
3461
-
}
3456
+
BLITZ_SCOPE_STACK_PUSH(tpl, parent_params);
3462
3457
3463
3458
node=first_child;
3464
3459
while (node) {
@@ -3530,9 +3525,7 @@ static int blitz_exec_nodes(blitz_tpl *tpl, blitz_node *first_child,
3530
3525
}
3531
3526
}
3532
3527
3533
-
if (BLITZ_G(scope_lookup_limit) ||BLITZ_G(enable_magic_scope)) {
0 commit comments