php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #31077 Typo on preg_replace documentation
Submitted: 2004-12-14 02:22 UTC Modified: 2004-12-14 19:35 UTC
From: n0dalus at gmail dot com Assigned: sean (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: N/A
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: n0dalus at gmail dot com
New email:
PHP Version: OS:

 

 [2004-12-14 02:22 UTC] n0dalus at gmail dot com
Description:
------------
On http://www.php.net/manual/en/function.preg-replace.php#AEN113427
Example 4. Using /e modifier title should be changed, since / is just a delimiter and could be any other valid character.
A more appropriate title would be:
Example 4. Using PREG e modifier

Reproduce code:
---------------
N/A

Expected result:
----------------
N/A

Actual result:
--------------
N/A

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-14 09:00 UTC] vrana@php.net
Thanks for the note, but it's a habit to mark modifiers with a slash from languages where / directly denotes the edge of a regexp (like JavaScript).
 [2004-12-14 18:51 UTC] sean@php.net
I think this bug has merit.
#e, @e and !e are all equivalent to /e in regex-speak, so it should just be "Using the 'e' modifier".

I'll fix it in a bit.

S

 [2004-12-14 19:35 UTC] sean@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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jun 17 19:01:30 2024 UTC