iliaa Mon Jul 19 21:03:18 2004 EDT Modified files: (Branch: PHP_5_0) /php-src/ext/ctype ctype.c Log: MFH: Fixed bug #29226 (ctype_* functions missing validation of numeric string representations). http://cvs.php.net/diff.php/php-src/ext/ctype/ctype.c?r1=1.29&r2=1.29.2.1&ty=u Index: php-src/ext/ctype/ctype.c diff -u php-src/ext/ctype/ctype.c:1.29 php-src/ext/ctype/ctype.c:1.29.2.1 --- php-src/ext/ctype/ctype.c:1.29 Thu Jan 8 03:14:36 2004 +++ php-src/ext/ctype/ctype.c Mon Jul 19 21:03:18 2004 @@ -97,7 +97,11 @@ return; \ switch (Z_TYPE_P(c)) { \ case IS_LONG: \ - RETURN_BOOL(iswhat(Z_LVAL_P(c))); \ + if (Z_LVAL_P(c) < 255 && Z_LVAL_P(c) > -127) { \ + RETURN_BOOL(iswhat(Z_LVAL_P(c))); \ + } \ + SEPARATE_ZVAL(&c); \ + convert_to_string(c); \ case IS_STRING: \ { \ char *p; \
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php