svn: /phpdoc/en/trunk/reference/pcre/ functions/preg-replace.xml pattern.modifiers.xml

From: Date: Wed, 20 May 2015 05:15:44 +0000
Subject: svn: /phpdoc/en/trunk/reference/pcre/ functions/preg-replace.xml pattern.modifiers.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-13315@lists.php.net to get a copy of this message
sobak Wed, 20 May 2015 05:15:44 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=336806 Log: Document PREG_REPLACE_EVAL removal Changed paths: U phpdoc/en/trunk/reference/pcre/functions/preg-replace.xml U phpdoc/en/trunk/reference/pcre/pattern.modifiers.xml Modified: phpdoc/en/trunk/reference/pcre/functions/preg-replace.xml =================================================================== --- phpdoc/en/trunk/reference/pcre/functions/preg-replace.xml 2015-05-20 05:03:42 UTC (rev 336805) +++ phpdoc/en/trunk/reference/pcre/functions/preg-replace.xml 2015-05-20 05:15:44 UTC (rev 336806) @@ -36,8 +36,7 @@ </para> <para> Several <link linkend="reference.pcre.pattern.modifiers">PCRE modifiers</link> - are also available, including the deprecated '<literal>e</literal>' - (PREG_REPLACE_EVAL), which is specific to this function. + are also available. </para> </listitem> </varlistentry> @@ -147,8 +146,9 @@ <refsect1 role="errors"> &reftitle.errors; <para> - An <constant>E_DEPRECATED</constant> level error is emitted when - passing in the "\e" modifier. + As of PHP 5.5.0 <constant>E_DEPRECATED</constant> level error is emitted when + passing in the "\e" modifier. As of PHP 7.0.0 <constant>E_WARNING</constant> is + emited in this case and "\e" modifier has no effect. </para> </refsect1> @@ -165,6 +165,13 @@ </thead> <tbody> <row> + <entry>7.0.0</entry> + <entry> + Support for the <literal>/e</literal> modifier has been removed. + Use <function>preg_replace_callback</function> instead. + </entry> + </row> + <row> <entry>5.5.0</entry> <entry> The <literal>/e</literal> modifier is deprecated. Use Modified: phpdoc/en/trunk/reference/pcre/pattern.modifiers.xml =================================================================== --- phpdoc/en/trunk/reference/pcre/pattern.modifiers.xml 2015-05-20 05:03:42 UTC (rev 336805) +++ phpdoc/en/trunk/reference/pcre/pattern.modifiers.xml 2015-05-20 05:15:44 UTC (rev 336806) @@ -1,6 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- splitted from ./en/functions/pcre.xml, last change in rev 1.2 --> <article xml:id="reference.pcre.pattern.modifiers" xmlns="http://docbook.org/ns/docbook"> <title>Pattern Modifiers</title> <titleabbrev>Possible modifiers in regex patterns</titleabbrev> @@ -79,7 +78,7 @@ <varlistentry xml:id="reference.pcre.pattern.modifiers.eval"> <term><emphasis>e</emphasis> (<literal>PREG_REPLACE_EVAL</literal>)</term> <listitem> - &warn.deprecated.feature-5-5-0; + &warn.deprecated.feature-5-5-0.removed-7-0-0; <simpara> If this deprecated modifier is set, <function>preg_replace</function> does normal substitution of backreferences in the

« previous php.doc.cvs (#13315) next »