Bug #18531: preg_ function and slashes
| From: | ivk at jensentechnologies dot com | Date: | Wed, 24 Jul 2002 08:55:14 +0000 |
| Subject: | Bug #18531: preg_ function and slashes | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-15018@lists.php.net to get a copy of this message | ||
From: ivk@jensentechnologies.com
Operating system: Windows 2000
PHP version: 4.2.2
PHP Bug Type: PCRE related
Bug description: preg_ function and slashes
$_ = 'test\\string';
$_ = preg_replace('/\\/i', 'A', $_);
echo $_;
doesn't replace (in php 4.2.0 it works!)
and
$_ = 'test\\string';
$_ = preg_replace('/\\\/i', 'A', $_);
echo $_;
works.
I think is a bug
--
Edit bug report at http://bugs.php.net/?id=18531&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18531&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18531&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18531&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18531&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18531&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18531&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18531&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18531&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18531&r=globals