Re: I lied, another question / problem

From: Date: Sun, 21 Jan 2007 10:48:30 +0000
Subject: Re: I lied, another question / problem
References: 1 2 3 4 5 6 7 8  Groups: php.general 
Request: Send a blank email to php-general+get-247489@lists.php.net to get a copy of this message
# jochem@iamjochem.com / 2007-01-21 00:11:13 +0100: > Roman Neuhauser wrote: > > # jochem@iamjochem.com / 2007-01-17 16:59:26 +0100: > >> wouldn't it be fair to assume (safety through paranoia) that > >> ctype_alnum() would suffer the same problem? (given the manual's > >> indication that ctype_alnum() and the offending regexp are equivalent?) > > > > isalnum(3) uses isalpha(3) and isdigit(3), so yes, their results are > > locale-dependent (LC_CTYPE, see setlocale(3)), but don't depend on > > collating sequence. > > so really the doc's are slightly misleading or even incorrect, Slightly, in a usually-behaves-as-described-but-for-different-reasons way. > as a side note: do you have any real world example of where this > collation issue might actually bite someone making use of the aforementioned > regexp range? Not off the top of my head. :( -- How many Vietnam vets does it take to screw in a light bulb? You don't know, man. You don't KNOW. Cause you weren't THERE. http://bash.org/?255991

« previous php.general (#247489) next »