From: naox at yum dot pl Operating system: fedora 1 PHP version: 5.0.4 PHP Bug Type: *Regular Expressions Bug description: some bug in preg_match in php 5
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 bug report at http://bugs.php.net/?id=33504&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33504&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=33504&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=33504&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=33504&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=33504&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=33504&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=33504&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=33504&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=33504&r=support
Expected behavior: http://bugs.php.net/fix.php?id=33504&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=33504&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=33504&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=33504&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33504&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=33504&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=33504&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=33504&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=33504&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=33504&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=33504&r=mysqlcfg
