PHP 4.0 Bug #9325: wrong parameter count for preg_replace

From: Date: Sun, 18 Feb 2001 18:14:48 +0000
Subject: PHP 4.0 Bug #9325: wrong parameter count for preg_replace
Groups: php.dev 
Request: Send a blank email to php-dev+get-46849@lists.php.net to get a copy of this message
From: tm@salome.datron.cz Operating system: linux PHP version: 4.0.4pl1 PHP Bug Type: *Regular Expressions Bug description: wrong parameter count for preg_replace i've the following code: <? $string="test test test test" $newstring=preg_replace("/test/","ok",$newstring,1); echo $newstring; ?> from your manual pages to preg_replace function it allow to specify a limit number of matches. But here it reports an error: Wrong parameter count for preg_replace() in test.php on line 3 ;-( -- Edit Bug report at: http://bugs.php.net/?id=9325&edit=1

« previous php.dev (#46849) next »