cvs: ZendEngine2 / zend_execute_API.c
| From: | Jani Taskinen | Date: | Sat, 26 Mar 2005 02:43:02 +0000 |
| Subject: | cvs: ZendEngine2 / zend_execute_API.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-3530@lists.php.net to get a copy of this message | ||
sniper Fri Mar 25 21:43:02 2005 EDT
Modified files:
/ZendEngine2 zend_execute_API.c
Log:
- Fixed bug #28839 (SIGSEGV in interactive mode (php -a))
(kameshj at fastmail dot fm)
http://cvs.php.net/diff.php/ZendEngine2/zend_execute_API.c?r1=1.314&r2=1.315&ty=u
Index: ZendEngine2/zend_execute_API.c
diff -u ZendEngine2/zend_execute_API.c:1.314 ZendEngine2/zend_execute_API.c:1.315
--- ZendEngine2/zend_execute_API.c:1.314 Sat Mar 19 09:25:42 2005
+++ ZendEngine2/zend_execute_API.c Fri Mar 25 21:43:02 2005
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_execute_API.c,v 1.314 2005/03/19 14:25:42 helly Exp $ */
+/* $Id: zend_execute_API.c,v 1.315 2005/03/26 02:43:02 sniper Exp $ */
#include <stdio.h>
#include <signal.h>
@@ -1094,6 +1094,17 @@
opline->op2.u.constant.is_ref = 1;
opline->op2.u.constant.refcount = 2;
}
+ switch (opline->opcode) {
+ case ZEND_JMP:
+ opline->op1.u.jmp_addr = &CG(active_op_array)->opcodes[opline->op1.u.opline_num];
+ break;
+ case ZEND_JMPZ:
+ case ZEND_JMPNZ:
+ case ZEND_JMPZ_EX:
+ case ZEND_JMPNZ_EX:
+ opline->op2.u.jmp_addr = &CG(active_op_array)->opcodes[opline->op2.u.opline_num];
+ break;
+ }
ZEND_VM_SET_OPCODE_HANDLER(opline);
opline++;
}