|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33504 some bug in preg_match in php 5
Submitted: 2005-06-29 02:52 UTC Modified: 2005-06-29 10:31 UTC
From: naox at yum dot pl Assigned:
Status: Not a bug Package: *Regular Expressions
PHP Version: 5.0.4 OS: fedora 1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: naox at yum dot pl
New email:
PHP Version: OS:


 [2005-06-29 02:52 UTC] naox at yum dot pl
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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-29 02:57 UTC] naox at yum dot pl
ok. thats probably not bug but diffrence. you got to

anyway by making such diffrences you make all aplications writen to 4.x incompatibile.
 [2005-06-29 10:31 UTC]
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Feb 27 21:01:27 2024 UTC