php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #16242 Problems with case sensitivity german letters
Submitted: 2002-03-24 08:47 UTC Modified: 2003-05-04 09:24 UTC
From: mail at hitzker dot de Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.3.0-dev OS: Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mail at hitzker dot de
New email:
PHP Version: OS:

 

 [2002-03-24 08:47 UTC] mail at hitzker dot 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)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-24 08:53 UTC] 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 09:41 UTC] mail at hitzker dot 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 09:42 UTC] derick@php.net
Can you still try the RC from www.php.net/~derick/ ?

Derick
 [2002-03-24 09:47 UTC] mail at hitzker dot 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:52 UTC] mfischer@php.net
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.

 [2002-03-24 10:03 UTC] mail at hitzker dot de
ok, thank you very much. Now everything is working fine.

Michael
 [2003-05-04 09:14 UTC] moriyoshi@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 [2003-05-04 09:24 UTC] didou@php.net
fixed in CVS == closed :)
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon May 05 23:01:28 2025 UTC