From: Marcus Boerger Date: Mon, 24 Jul 2006 22:36:21 +0000 (+0000) Subject: - MFH Yet another problematic case with mangled properties X-Git-Tag: php-5.2.0RC2~227 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4da92e63afd65bb117fd6cc3a5ac8cec56bf7417;p=php - MFH Yet another problematic case with mangled properties --- diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index e92bda6460..7f9bf757b0 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -2918,7 +2918,7 @@ ZEND_API int zend_unmangle_property_name(char *mangled_property, int len, char * *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;