cvs: ZendEngine2 / zend_compile.c zend_compile.h
| From: | Antony Dovgal | Date: | Thu, 23 Mar 2006 09:44:30 +0000 |
| Subject: | cvs: ZendEngine2 / zend_compile.c zend_compile.h | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-4756@lists.php.net to get a copy of this message | ||
tony2001 Thu Mar 23 09:44:30 2006 UTC
Modified files:
/ZendEngine2 zend_compile.c zend_compile.h
Log:
implement correct fix for segfault on 64bit platform
http://cvs.php.net/viewcvs.cgi/ZendEngine2/zend_compile.c?r1=1.700&r2=1.701&diff_format=u
Index: ZendEngine2/zend_compile.c
diff -u ZendEngine2/zend_compile.c:1.700 ZendEngine2/zend_compile.c:1.701
--- ZendEngine2/zend_compile.c:1.700 Wed Mar 22 19:36:10 2006
+++ ZendEngine2/zend_compile.c Thu Mar 23 09:44:30 2006
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_compile.c,v 1.700 2006/03/22 19:36:10 tony2001 Exp $ */
+/* $Id: zend_compile.c,v 1.701 2006/03/23 09:44:30 tony2001 Exp $ */
#include <zend_language_parser.h>
#include "zend.h"
@@ -4377,7 +4377,7 @@
void zend_resolve_goto_label(zend_op_array *op_array, zend_op *opline, int pass2 TSRMLS_DC)
{
zend_label *dest;
- int current, distance;
+ long current, distance;
if (CG(labels) == NULL ||
zend_u_hash_find(CG(labels), Z_TYPE(opline->op2.u.constant),
Z_UNIVAL(opline->op2.u.constant), Z_UNILEN(opline->op2.u.constant)+1, (void**)&dest) ==
FAILURE) {
http://cvs.php.net/viewcvs.cgi/ZendEngine2/zend_compile.h?r1=1.339&r2=1.340&diff_format=u
Index: ZendEngine2/zend_compile.h
diff -u ZendEngine2/zend_compile.h:1.339 ZendEngine2/zend_compile.h:1.340
--- ZendEngine2/zend_compile.h:1.339 Thu Mar 16 15:35:26 2006
+++ ZendEngine2/zend_compile.h Thu Mar 23 09:44:30 2006
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_compile.h,v 1.339 2006/03/16 15:35:26 dmitry Exp $ */
+/* $Id: zend_compile.h,v 1.340 2006/03/23 09:44:30 tony2001 Exp $ */
#ifndef ZEND_COMPILE_H
#define ZEND_COMPILE_H
@@ -199,8 +199,8 @@
zend_uint T;
zend_brk_cont_element *brk_cont_array;
- zend_uint last_brk_cont;
- zend_uint current_brk_cont;
+ int last_brk_cont;
+ int current_brk_cont;
zend_try_catch_element *try_catch_array;
int last_try_catch;