php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #39391 preg_replace() as faster alternative to ereg() in the french ereg() manual
Submitted: 2006-11-05 22:41 UTC Modified: 2006-11-06 04:41 UTC
From: fc at ambika dot fr Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: *
Private report: No CVE-ID: None
 [2006-11-05 22:41 UTC] fc at ambika dot fr
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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-11-06 04:41 UTC] yannick@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.
 [2020-12-30 12:50 UTC] nikic@php.net
Automatic comment on behalf of yannick
Revision: http://git.php.net/?p=doc/fr.git;a=commit;h=4a152331775dff133b31b91e92531b160f6aa9c6
Log: fix bug #39391
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 06 17:01:34 2024 UTC