mirror of
https://github.com/php/php-src.git
synced 2025-08-18 23:18:56 +02:00
Minor code cleanup
The block for the foreach separator was nested unnecessary. This commit simply removes that nesting.
This commit is contained in:
parent
252f623464
commit
9b51a3b96d
1 changed files with 8 additions and 8 deletions
|
@ -1725,7 +1725,7 @@ void zend_do_begin_function_declaration(znode *function_token, znode *function_n
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
/* Push a seperator to the switch and foreach stacks */
|
/* Push a seperator to the switch stack */
|
||||||
zend_switch_entry switch_entry;
|
zend_switch_entry switch_entry;
|
||||||
|
|
||||||
switch_entry.cond.op_type = IS_UNUSED;
|
switch_entry.cond.op_type = IS_UNUSED;
|
||||||
|
@ -1733,9 +1733,10 @@ void zend_do_begin_function_declaration(znode *function_token, znode *function_n
|
||||||
switch_entry.control_var = 0;
|
switch_entry.control_var = 0;
|
||||||
|
|
||||||
zend_stack_push(&CG(switch_cond_stack), (void *) &switch_entry, sizeof(switch_entry));
|
zend_stack_push(&CG(switch_cond_stack), (void *) &switch_entry, sizeof(switch_entry));
|
||||||
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
/* Foreach stack separator */
|
/* Push a separator to the foreach stack */
|
||||||
zend_op dummy_opline;
|
zend_op dummy_opline;
|
||||||
|
|
||||||
dummy_opline.result_type = IS_UNUSED;
|
dummy_opline.result_type = IS_UNUSED;
|
||||||
|
@ -1743,7 +1744,6 @@ void zend_do_begin_function_declaration(znode *function_token, znode *function_n
|
||||||
|
|
||||||
zend_stack_push(&CG(foreach_copy_stack), (void *) &dummy_opline, sizeof(zend_op));
|
zend_stack_push(&CG(foreach_copy_stack), (void *) &dummy_opline, sizeof(zend_op));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (CG(doc_comment)) {
|
if (CG(doc_comment)) {
|
||||||
CG(active_op_array)->doc_comment = CG(doc_comment);
|
CG(active_op_array)->doc_comment = CG(doc_comment);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue