cvs: php-src /ext/ctype ctype.c

From: Date: Tue, 20 Jul 2004 01:03:16 +0000
Subject: cvs: php-src /ext/ctype ctype.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-27905@lists.php.net to get a copy of this message
iliaa Mon Jul 19 21:03:16 2004 EDT Modified files: /php-src/ext/ctype ctype.c Log: 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.30&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.30 --- 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:16 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 (#27905) next »