cvs: ZendEngine2 / zend_compile.c

From: Date: Mon, 24 Jul 2006 22:34:44 +0000
Subject: cvs: ZendEngine2 / zend_compile.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-5125@lists.php.net to get a copy of this message
helly Mon Jul 24 22:34:44 2006 UTC Modified files: /ZendEngine2 zend_compile.c Log: - Yet another rproblematic case with mangled properties http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_compile.c?r1=1.719&r2=1.720&diff_format=u Index: ZendEngine2/zend_compile.c diff -u ZendEngine2/zend_compile.c:1.719 ZendEngine2/zend_compile.c:1.720 --- ZendEngine2/zend_compile.c:1.719 Mon Jul 24 17:51:41 2006 +++ ZendEngine2/zend_compile.c Mon Jul 24 22:34:44 2006 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_compile.c,v 1.719 2006/07/24 17:51:41 helly Exp $ */ +/* $Id: zend_compile.c,v 1.720 2006/07/24 22:34:44 helly Exp $ */ #include <zend_language_parser.h> #include "zend.h" @@ -3101,7 +3101,7 @@ *prop_name = mangled_property; return SUCCESS; } - if (len < 3) { + if (len < 3 || mangled_property[1]==0) { zend_error(E_NOTICE, "Illegal member variable name"); *prop_name = mangled_property; return FAILURE; @@ -3129,7 +3129,7 @@ *prop_name = mangled_property; return SUCCESS; } - if (len < 3) { + if (len < 3 || mangled_property.u[1]==0) { zend_error(E_NOTICE, "Illegal member variable name"); *prop_name = mangled_property; return FAILURE;

« previous php.zend-engine.cvs (#5125) next »