#33504 [Csd->Bgs]: some bug in preg_match in php 5
| From: | tony2001@php.net | Date: | Wed, 29 Jun 2005 08:31:29 +0000 |
| Subject: | #33504 [Csd->Bgs]: some bug in preg_match in php 5 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-81157@lists.php.net to get a copy of this message | ||
ID: 33504
Updated by: tony2001@php.net
Reported By: naox at yum dot pl
-Status: Closed
+Status: Bogus
Bug Type: *Regular Expressions
Operating System: fedora 1
PHP Version: 5.0.4
New Comment:
.
Previous Comments:
------------------------------------------------------------------------
[2005-06-29 02:57:07] naox at yum dot pl
ok. thats probably not bug but diffrence. you got to
preg_match("/^$login\_/,$sth)
anyway by making such diffrences you make all aplications writen to 4.x
incompatibile.
------------------------------------------------------------------------
[2005-06-29 02:52:56] naox at yum dot pl
Description:
------------
there is some bug in preg_match only in php 5
preg_match("/^$login_/,$sth) will always be true
preg_match("/^$login/,$sth) is ok. diffrence is _ after $login. You
cant use it :/
if before matching $login = "$login_"; everytjing will be ok.
this but was not present in php 4.x
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33504&edit=1