com php-src: fix C89 compat: Zend/zend_compile.c
| From: | Anatol Belski | Date: | Tue, 07 Jul 2015 16:39:33 +0000 |
| Subject: | com php-src: fix C89 compat: Zend/zend_compile.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-87806@lists.php.net to get a copy of this message | ||
Commit: c0142de470b5f57975054a51833273b01f569333
Author: Anatol Belski <ab@php.net> Tue, 7 Jul 2015 18:39:33 +0200
Parents: 4c34d574147d2b23d3e4d8fb454b6102eb2ddfc1
Branches: PHP-5.6 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c0142de470b5f57975054a51833273b01f569333
Log:
fix C89 compat
Changed paths:
M Zend/zend_compile.c
Diff:
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index 278ac4e..0bfb770 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -6827,12 +6827,14 @@ void zend_do_extended_fcall_end(TSRMLS_D) /* {{{ */
void zend_do_ticks(TSRMLS_D) /* {{{ */
{
+ zend_op *opline;
+
/* This prevents a double TICK generated by the parser statement of "declare()" */
if (CG(active_op_array)->last &&
CG(active_op_array)->opcodes[CG(active_op_array)->last - 1].opcode == ZEND_TICKS) {
return;
}
- zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC);
+ opline = get_next_op(CG(active_op_array) TSRMLS_CC);
opline->opcode = ZEND_TICKS;
SET_UNUSED(opline->op1);