From b5547442e51ed94bc746e3d8f9b5a931dcf3d31f Mon Sep 17 00:00:00 2001 From: Sara Golemon Date: Sat, 21 Aug 2004 00:00:16 +0000 Subject: [PATCH] Bugfix#29777 Some compilers don't like // style comments --- Zend/zend_compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 22ecd626f58..547beb96655 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -1102,7 +1102,7 @@ void zend_do_end_function_declaration(znode *function_token TSRMLS_DC) * 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) {