|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-09-17 16:30 UTC] stas@php.net
[2001-08-31 06:32 UTC] sander@php.net
[2010-08-07 01:44 UTC] johannes@php.net
-Status: Open
+Status: Bogus
-Package: Feature/Change Request
+Package: *General Issues
[2010-08-07 01:44 UTC] johannes@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 08:00:01 2025 UTC |
<?php if(eregi("^[[:alnum:]]+$",$t1)) { printf("alnum<br>"); } else { printf("not alnum<br>"); } ?> when invoked with $t1=<some string in cyrillic koi8-r encoding> (example - "????") and correct locale settings (see below) prints "not alnum" while at the command line grep -E with the same input matches: ------- mbravo@tag-ltd:pages$ grep -E '[[:alnum:]]+' ???? ???? ------- PHP configured as - './configure' '--prefix=/opt/www' '--with-apxs=/opt/www/bin/apxs' '--with-mod_charset' '--with-mysql=/opt' '--with-pgsql=/opt' posix Revision $Revision: 1.17 $ LANG ru_RU.KOI8-R HTTP_ENV_VARS["LANG"] ru_RU.KOI8-R