com php-src: fixed ext/ctype: ext/ctype/ctype.c
| From: | Anatol Belski | Date: | Thu, 28 Nov 2013 08:53:00 +0000 |
| Subject: | com php-src: fixed ext/ctype: ext/ctype/ctype.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-74107@lists.php.net to get a copy of this message | ||
Commit: 46448539b0482875473d66c20a8e319578e41a4d
Author: Anatol Belski <ab@php.net> Thu, 28 Nov 2013 09:53:00 +0100
Parents: 3f7522a652d2c90ca594cdb02b4083ce64213e46
Branches: str_size_and_int64
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=46448539b0482875473d66c20a8e319578e41a4d
Log:
fixed ext/ctype
Changed paths:
M ext/ctype/ctype.c
Diff:
diff --git a/ext/ctype/ctype.c b/ext/ctype/ctype.c
index e2698f5..a7b7536 100644
--- a/ext/ctype/ctype.c
+++ b/ext/ctype/ctype.c
@@ -159,7 +159,7 @@ static PHP_MINFO_FUNCTION(ctype)
tmp = *c; \
} \
if (Z_TYPE(tmp) == IS_STRING) { \
- char *p = Z_STRVAL(tmp), *e = Z_STRVAL(tmp) + Z_STRLEN(tmp); \
+ char *p = Z_STRVAL(tmp), *e = Z_STRVAL(tmp) + Z_STRSIZE(tmp); \
if (e == p) { \
if (Z_TYPE_P(c) == IS_LONG) zval_dtor(&tmp); \
RETURN_FALSE; \