Re: cvs: php-src(PHP_4_3) /ext/standard file.c
| From: | Ilia Alshanetsky | Date: | Sun, 07 Dec 2003 23:50:45 +0000 |
| Subject: | Re: cvs: php-src(PHP_4_3) /ext/standard file.c | ||
| References: | 1 2 3 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-25064@lists.php.net to get a copy of this message | ||
On December 7, 2003 06:17 pm, Moriyoshi Koizumi wrote:
> Nope. Regardless of the range the function covers, it may return an
> unwanted
> value because the function is likely backed by a simple vector and a
> negative
> argument may make it refer to a point out of the valid address space.
While I cannot speak for behavior of the win32 libc library I've just tested a
simple C program with positive & negative ranges for the values of isspace().
In glibc 2.2.X, 2.3.X, libc4 (FreeBSD 4.7), libc5 (FreeBSD 5.1) the function
works properly without long winded casts.
Ilia