Commit:    46448539b0482875473d66c20a8e319578e41a4d
Author:    Anatol Belski <a...@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;   \


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to