]> granicus.if.org Git - php/commit
Those casts are really necessary.
authorMoriyoshi Koizumi <moriyoshi@php.net>
Sun, 7 Dec 2003 21:55:16 +0000 (21:55 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Sun, 7 Dec 2003 21:55:16 +0000 (21:55 +0000)
commit6771367c95c34106590e43b190469c0b51a3a4de
tree2cd1b6f8b0e76395076c85e1fa167fd9feae4af8
parent7999d1a384134e9ac420a25ae55cd5fd1f95999c
Those casts are really necessary.
# Heads up; please be careful using is*() functions. The function of that kind
# takes an integer value as its argument and expects the value to be range of
# 0-255 as a parameter. So if you pass a plain char value to it, the char
# value will be converted implicitly to an integer value of the range
# -128 ~ 127, which will end up with an unwanted result, most likely with
# non-ASCII characters. This has been considered to be a big flaw in the
# specification of the ctype functions. However, the malfunction is not
# reproducible with the recent versions of the GNU C library because it is
# made to deal with such exceptional cases, while Microsoft's C library
# and several standard C libraries of BSD origin aren't.
#
# See also bug #10896, #12127, #18318, and #21689.
#
ext/standard/file.c