Bug #16242 Updated: Problems with case sensitivity german letters
| From: | mfischer@php.net | Date: | Sun, 24 Mar 2002 14:52:50 +0000 |
| Subject: | Bug #16242 Updated: Problems with case sensitivity german letters | ||
| References: | 1 | Groups: | php.bugs php.doc |
| Request: | Send a blank email to php-bugs+get-3233@lists.php.net to get a copy of this message | ||
ID: 16242
Updated by: mfischer@php.net
Reported By: mail@hitzker.de
Status: Open
-Bug Type: *Regular Expressions
+Bug Type: Documentation problem
Operating System: Linux
-PHP Version: 4.0.6
+PHP Version: Any
New Comment:
You have the set the proper locale first, e.g. setlocale(LC_ALL,
'de_DE'); .
Marking this as a documentation problem as I couldn't find a note on
the preg_match() and on the general PCRE manual page.
Previous Comments:
------------------------------------------------------------------------
[2002-03-24 09:47:00] mail@hitzker.de
No,I can´t check with PHP4.2.0rc1 , because it´s not my webserver.
The server is from an ISP.
Michael
------------------------------------------------------------------------
[2002-03-24 09:42:56] derick@php.net
Can you still try the RC from www.php.net/~derick/ ?
Derick
------------------------------------------------------------------------
[2002-03-24 09:41:05] mail@hitzker.de
Sorry, there was an error in my bug-Report.
There is no 4.0.8 ver. of PHP, of course!
But it works all fine with 4.0.6 on a Windows machine.
------------------------------------------------------------------------
[2002-03-24 08:53:44] derick@php.net
Can you try if it works with PHP4.2.0rc1 from www.php.net/~derick ?
(And where did you find php 4.0.8? That did never exist :)
Derick
------------------------------------------------------------------------
[2002-03-24 08:47:31] mail@hitzker.de
BUG-Report:
preg_match("/^([abcdefghijklmnopqrstuvwxyzäöüß \-])+$/i",$input)
does not Match on "Öhringen", or "dhdgÖfdhh", but on "Lörrach".
I think it is a problem of case sensitivity.
Solutions:
use:preg_match("/^([abcdefghijklmnopqrstuvwxyzäÄöÖüÜß
\-])+$/i",$input[Ort])
or
install PHP 4.0.8 (no problems)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16242&edit=1