cvs: ZendEngine2 / zend_compile.c

From: Date: Mon, 30 Jun 2003 20:24:26 +0000
Subject: cvs: ZendEngine2 / zend_compile.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-1413@lists.php.net to get a copy of this message
sterling Mon Jun 30 16:24:26 2003 EDT Modified files: /ZendEngine2 zend_compile.c Log: nuke "main" as a reserved keyword Index: ZendEngine2/zend_compile.c diff -u ZendEngine2/zend_compile.c:1.430 ZendEngine2/zend_compile.c:1.431 --- ZendEngine2/zend_compile.c:1.430 Mon Jun 30 16:22:35 2003 +++ ZendEngine2/zend_compile.c Mon Jun 30 16:24:26 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_compile.c,v 1.430 2003/06/30 20:22:35 andi Exp $ */ +/* $Id: zend_compile.c,v 1.431 2003/06/30 20:24:26 sterling Exp $ */ #include "zend_language_parser.h" #include "zend.h" @@ -2251,8 +2251,7 @@ zend_str_tolower(class_name->u.constant.value.str.val, class_name->u.constant.value.str.len); - if (!(strcmp(class_name->u.constant.value.str.val, "main") && strcmp(class_name->u.constant.value.str.val, "self") && - strcmp(class_name->u.constant.value.str.val, "parent"))) { + if (!(strcmp(class_name->u.constant.value.str.val, "self") && strcmp(class_name->u.constant.value.str.val, "parent"))) { zend_error(E_COMPILE_ERROR, "Cannot use '%s' as class name as it is reserved", class_name->u.constant.value.str.val); }

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