Bug #17957 Updated: Empty backreferences broken
| From: | sander@php.net | Date: | Tue, 25 Jun 2002 11:02:47 +0000 |
| Subject: | Bug #17957 Updated: Empty backreferences broken | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-12030@lists.php.net to get a copy of this message | ||
ID: 17957
Updated by: sander@php.net
Reported By: john@scl.co.uk
-Status: Open
+Status: Feedback
Bug Type: Regexps related
Operating System: Linux 2.2.19
PHP Version: 4.2.1
New Comment:
Can you try the latest snapshot from http://snaps.php.net, I
think this
has been fixed.
Previous Comments:
------------------------------------------------------------------------
[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