cvs: ZendEngine2 / zend_compile.c
| From: | Moriyoshi Koizumi | Date: | Tue, 11 Jan 2005 17:17:49 +0000 |
| Subject: | cvs: ZendEngine2 / zend_compile.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-3277@lists.php.net to get a copy of this message | ||
moriyoshi Tue Jan 11 12:17:49 2005 EDT
Modified files:
/ZendEngine2 zend_compile.c
Log:
- Fix bug #31478 (segfault with empty())
http://cvs.php.net/diff.php/ZendEngine2/zend_compile.c?r1=1.602&r2=1.603&ty=u
Index: ZendEngine2/zend_compile.c
diff -u ZendEngine2/zend_compile.c:1.602 ZendEngine2/zend_compile.c:1.603
--- ZendEngine2/zend_compile.c:1.602 Thu Dec 30 10:18:23 2004
+++ ZendEngine2/zend_compile.c Tue Jan 11 12:17:48 2005
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_compile.c,v 1.602 2004/12/30 15:18:23 sniper Exp $ */
+/* $Id: zend_compile.c,v 1.603 2005/01/11 17:17:48 moriyoshi Exp $ */
#include <zend_language_parser.h>
#include "zend.h"
@@ -3321,6 +3321,7 @@
}
}
last_op->result.op_type = IS_TMP_VAR;
+ last_op->result.u.var = get_temporary_variable(CG(active_op_array));
last_op->extended_value = type;
*result = last_op->result;