#17957 [Ver->Csd]: Empty backreferences broken
| From: | iliaa@php.net | Date: | Tue, 24 Sep 2002 16:42:52 +0000 |
| Subject: | #17957 [Ver->Csd]: Empty backreferences broken | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-20209@lists.php.net to get a copy of this message | ||
ID: 17957
Updated by: iliaa@php.net
Reported By: john@scl.co.uk
-Status: Verified
+Status: Closed
Bug Type: Regexps related
Operating System: Linux 2.2.19
PHP Version: 4.3.0-dev
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2002-07-09 08:04:36] sniper@php.net
reproduced.
------------------------------------------------------------------------
[2002-07-09 06:34:22] john@scl.co.uk
Tried it with 4.3.0-dev downloaded from CVS this morning
and result is same. (Not sure if this is same as
http://snaps.php.net?)
------------------------------------------------------------------------
[2002-06-25 07:02:47] sander@php.net
Can you try the latest snapshot from http://snaps.php.net, I
think this
has been fixed.
------------------------------------------------------------------------
[2002-06-24 18:08:45] john@scl.co.uk
<?
echo ereg_replace("^(a*)",'\1','a')."\n";
echo ereg_replace("^(a*)",'\1','b')."\n";
echo ereg_replace("^(a)*",'\1','a')."\n";
echo ereg_replace("^(a)*",'\1','b')."\n";
?>
produces:
a
b
a
\1b
should produce:
a
b
a
b
'./configure' '--with-apxs=/usr/sbin/apxs'
'--with-config-file-path=/usr/lib' '--with-curl'
'--with-pdflib=shared' '--with-mcrypt' '--with-pcre'
'--with-dom'
'--with-pear' '--with-xml=shared' '--with-zlib-dir=/usr'
'--prefix=/usr' '--enable-debug=no' '--enable-safe-mode'
'--with-exec-dir=/usr/bin' '--with-mysql=/usr' '--with-regex=system'
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=17957&edit=1