svn: /phpdoc/en/trunk/reference/misc/functions/ eval.xml
| From: | Christoph Michael Becker | Date: | Thu, 17 Dec 2015 11:38:30 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/misc/functions/ eval.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-13899@lists.php.net to get a copy of this message | ||
cmb Thu, 17 Dec 2015 11:38:30 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=338282
Log:
fixed #70929: create_function now throws ParseError
Bug: https://bugs.php.net/70929 (Open) create_function now
throws ParseError
Changed paths:
U phpdoc/en/trunk/reference/misc/functions/eval.xml
Modified: phpdoc/en/trunk/reference/misc/functions/eval.xml
===================================================================
--- phpdoc/en/trunk/reference/misc/functions/eval.xml 2015-12-17 11:03:26 UTC (rev 338281)
+++ phpdoc/en/trunk/reference/misc/functions/eval.xml 2015-12-17 11:38:30 UTC (rev 338282)
@@ -70,9 +70,10 @@
<para>
<function>eval</function> returns &null; unless
<literal>return</literal> is called in the evaluated code, in which case
- the value passed to <literal>return</literal> is returned. If there is a
- parse error in the evaluated code, <function>eval</function> returns
- &false; and execution of the following code continues normally. It is
+ the value passed to <literal>return</literal> is returned. As of PHP 7, if there is
a
+ parse error in the evaluated code, <function>eval</function> throws a ParseError
exception.
+ Before PHP 7, in this case <function>eval</function> returned
+ &false; and execution of the following code continued normally. It is
not possible to catch a parse error in <function>eval</function>
using <function>set_error_handler</function>.
</para>