cvs: ZendEngine2 / zend_compile.c

From: Date: Sat, 21 Aug 2004 00:00:17 +0000
Subject: cvs: ZendEngine2 / zend_compile.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-2887@lists.php.net to get a copy of this message
pollita Fri Aug 20 20:00:17 2004 EDT Modified files: /ZendEngine2 zend_compile.c Log: Bugfix#29777 Some compilers don't like // style comments http://cvs.php.net/diff.php/ZendEngine2/zend_compile.c?r1=1.578&r2=1.579&ty=u Index: ZendEngine2/zend_compile.c diff -u ZendEngine2/zend_compile.c:1.578 ZendEngine2/zend_compile.c:1.579 --- ZendEngine2/zend_compile.c:1.578 Sun Aug 15 11:48:32 2004 +++ ZendEngine2/zend_compile.c Fri Aug 20 20:00:16 2004 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_compile.c,v 1.578 2004/08/15 15:48:32 helly Exp $ */ +/* $Id: zend_compile.c,v 1.579 2004/08/21 00:00:16 pollita Exp $ */ #include "zend_language_parser.h" #include "zend.h" @@ -1102,7 +1102,7 @@ * the beginning of the name speeds up the check process */ name_len = strlen(CG(active_op_array)->function_name); zend_str_tolower_copy(lcname, CG(active_op_array)->function_name, MIN(name_len, sizeof(lcname)-1)); - lcname[sizeof(lcname)-1] = '\0'; // zend_str_tolower_copy won't necessarily set the zero byte + lcname[sizeof(lcname)-1] = '\0'; /* zend_str_tolower_copy won't necessarily set the zero byte */ if (CG(active_class_entry)) { if (name_len == sizeof(ZEND_DESTRUCTOR_FUNC_NAME) - 1 && !memcmp(lcname, ZEND_DESTRUCTOR_FUNC_NAME, sizeof(ZEND_DESTRUCTOR_FUNC_NAME)) && CG(active_op_array)->num_args != 0) {

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