#39391 [NEW]: preg_replace() as faster alternative to ereg() in the french ereg() manual

From: Date: Sun, 05 Nov 2006 22:41:49 +0000
Subject: #39391 [NEW]: preg_replace() as faster alternative to ereg() in the french ereg() manual
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969374329@lists.php.net to get a copy of this message
From: fc at ambika dot fr Operating system: * PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: preg_replace() as faster alternative to ereg() in the french ereg() manual Description: ------------ The french translation of the PHP manual for the ereg() function claims that the preg_replace() as faster alternative to ereg(). This is a non-sense : we have to talk about preg_match() instead of preg_replace(), as it was done in the english manual. Reproduce code: --------------- See the french translation ot the PHP manual for the ereg() function. E.g. : http://fr2.php.net/ereg Expected result: ---------------- Note : preg_match(), qui utilise la syntaxe des expressions rationnelles compatibles PERL, est une alternative plus rapide de ereg(). ereg() recherche dans la chaîne string les séquences de caractères qui correspondent au masque pattern, en tenant compte de la casse. Actual result: -------------- Note : preg_replace(), qui utilise la syntaxe des expressions rationnelles compatibles PERL, est une alternative plus rapide de ereg_replace(). preg_replace() recherche dans la chaîne string les séquences de caractères qui correspondent au masque pattern, en tenant compte de la casse. -- Edit bug report at http://bugs.php.net/?id=39391&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39391&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39391&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39391&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=39391&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=39391&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=39391&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=39391&r=needscript Try newer version: http://bugs.php.net/fix.php?id=39391&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=39391&r=support Expected behavior: http://bugs.php.net/fix.php?id=39391&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=39391&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=39391&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=39391&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39391&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=39391&r=dst IIS Stability: http://bugs.php.net/fix.php?id=39391&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=39391&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=39391&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=39391&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=39391&r=mysqlcfg

« previous php.doc (#969374329) next »