[DOC-CVS] [doc-en] master: Remove description about preg `e` modifier (#5430)

[email protected] (Takuya Aramaki via GitHub) Fri, 20 Mar 2026 08:21:17 +0000
Newsgroups php.doc.cvs
Message-ID <[email protected]>
Author: Takuya Aramaki (takaram)
Committer: GitHub (web-flow)
Pusher: TimWolla
Date: 2026-03-20T09:21:14+01:00

Commit: https://github.com/php/doc-en/commit/79c53e3fa2afc0f09373b17c23896465d8d41d0a
Raw diff: https://github.com/php/doc-en/commit/79c53e3fa2afc0f09373b17c23896465d8d41d0a.diff

Remove description about preg `e` modifier (#5430)

`e` modifier was removed in PHP 7.0.
It has already been removed from `pattern.modifiers.xml`:
bcb7074498301e4712576a18849821f99f0fbaea

Changed paths:
  M  reference/pcre/functions/preg-replace.xml


Diff:

diff --git a/reference/pcre/functions/preg-replace.xml b/reference/pcre/functions/preg-replace.xml
index 52a35dcc1a34..cfee1a313ee8 100644
--- a/reference/pcre/functions/preg-replace.xml
+++ b/reference/pcre/functions/preg-replace.xml
@@ -85,16 +85,6 @@
        <literal>$1</literal> backreference, leaving the <literal>1</literal>
        as a literal.
       </para>
-      <para>
-       When using the deprecated <literal>e</literal> modifier, this function escapes
-       some characters (namely <literal>'</literal>, <literal>"</literal>,
-       <literal>\</literal> and NULL) in the strings that replace the
-       backreferences. This is done to ensure that no syntax errors arise
-       from backreference usage with either single or double quotes (e.g.
-       <literal>'strlen(\'$1\')+strlen("$2")'</literal>). Make sure you are
-       aware of PHP's <link linkend="language.types.string">string
-       syntax</link> to know exactly how the interpreted string will look.
-      </para>
      </listitem>
     </varlistentry>
     <varlistentry>