cvs: php-src(PHP_5_0) /ext/ctype ctype.c

From: Date: Tue, 20 Jul 2004 01:03:18 +0000
Subject: cvs: php-src(PHP_5_0) /ext/ctype ctype.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-27906@lists.php.net to get a copy of this message
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; \

« previous php.cvs (#27906) next »