cvs: ZendEngine2 / zend_compile.c
| From: | Antony Dovgal | Date: | Wed, 22 Mar 2006 19:36:10 +0000 |
| Subject: | cvs: ZendEngine2 / zend_compile.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-4755@lists.php.net to get a copy of this message | ||
tony2001 Wed Mar 22 19:36:10 2006 UTC
Modified files:
/ZendEngine2 zend_compile.c
Log:
don't segfault on 64bit platforms
http://cvs.php.net/viewcvs.cgi/ZendEngine2/zend_compile.c?r1=1.699&r2=1.700&diff_format=u
Index: ZendEngine2/zend_compile.c
diff -u ZendEngine2/zend_compile.c:1.699 ZendEngine2/zend_compile.c:1.700
--- ZendEngine2/zend_compile.c:1.699 Mon Mar 20 15:12:54 2006
+++ ZendEngine2/zend_compile.c Wed Mar 22 19:36:10 2006
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_compile.c,v 1.699 2006/03/20 15:12:54 dmitry Exp $ */
+/* $Id: zend_compile.c,v 1.700 2006/03/22 19:36:10 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;
- long current, distance;
+ int 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) {