com php-src: fix strlen macros: Zend/zend_compile.c
| From: | Anatol Belski | Date: | Sat, 26 Oct 2013 18:48:19 +0000 |
| Subject: | com php-src: fix strlen macros: Zend/zend_compile.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-73802@lists.php.net to get a copy of this message | ||
Commit: 23390de0e70a6e9faf0799f1ca6bf227e801308b
Author: Anatol Belski <ab@php.net> Sat, 26 Oct 2013 11:48:19 -0700
Parents: 4fc7dc6eae7402f195fd8c04367fc621cc2503c4
Branches: str_size_and_int64
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=23390de0e70a6e9faf0799f1ca6bf227e801308b
Log:
fix strlen macros
Changed paths:
M Zend/zend_compile.c
Diff:
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index e9373b9..0bfb254 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -4996,7 +4996,7 @@ void zend_do_begin_class_declaration(const znode *class_token, znode
*class_name
char *tmp = zend_str_tolower_dup(Z_STRVAL_PP(ns_name), Z_STRSIZE_PP(ns_name));
if (Z_STRSIZE_PP(ns_name) != Z_STRSIZE(class_name->u.constant) ||
- memcmp(tmp, lcname, Z_STRLEN(class_name->u.constant))) {
+ memcmp(tmp, lcname, Z_STRSIZE(class_name->u.constant))) {
zend_error_noreturn(E_COMPILE_ERROR, "Cannot declare class %s because the name is already
in use", Z_STRVAL(class_name->u.constant));
}
efree(tmp);