Skip to content

Commit

Permalink
eval.xml: add link to ParseError exception page (#3446)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalferov authored Jun 14, 2024
1 parent bdef726 commit 78d17c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reference/misc/functions/eval.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
<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. As of PHP 7, if there is a
parse error in the evaluated code, <function>eval</function> throws a ParseError exception.
parse error in the evaluated code, <function>eval</function> throws a <classname>ParseError</classname> 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>
Expand Down

0 comments on commit 78d17c2

Please sign in to comment.