betz Wed Oct 9 04:30:46 2002 EDT
Modified files:
/phpdoc/en/language operators.xml
Log:
$php_errmsg is not global
links to expressions, predefined $php_errmsg
Index: phpdoc/en/language/operators.xml
diff -u phpdoc/en/language/operators.xml:1.39 phpdoc/en/language/operators.xml:1.40
--- phpdoc/en/language/operators.xml:1.39 Tue Oct 8 06:38:41 2002
+++ phpdoc/en/language/operators.xml Wed Oct 9 04:30:45 2002
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.39 $ -->
+<!-- $Revision: 1.40 $ -->
<chapter id="language.operators">
<title>Operators</title>
<simpara>
@@ -406,14 +406,15 @@
<simpara>
PHP supports one error control operator: the at sign (@). When
prepended to an expression in PHP, any error messages that might
- be generated by that expression will be ignored.
+ be generated by that expression will be ignored.
</simpara>
<simpara>
If the <link linkend="ini.track-errors">track_errors</link>
feature is enabled, any error message generated by the expression
- will be saved in the global variable $php_errormsg. This variable
- will be overwritten on each error, so check early if you want to
- use it.
+ will be saved in the variable
+ <link linkend="reserved.variables.phperrormsg">$php_errormsg</link>.
+ This variable will be overwritten on each error, so check early if you
+ want to use it.
</simpara>
<para>
<informalexample>
@@ -435,9 +436,10 @@
</para>
<note>
<simpara>
- The @-operator works only on expressions. A simple rule of thumb
- is: if you can take the value of something, you can prepend the @
- operator to it. For instance, you can prepend it to variables,
+ The @-operator works only on
+ <link linkend="language.expressions">expressions</link>. A simple rule
+ of thumb is: if you can take the value of something, you can prepend
+ the @ operator to it. For instance, you can prepend it to variables,
function and <function>include</function> calls, constants, and
so forth. You cannot prepend it to function or class definitions,
or conditional structures such as <literal>if</literal> and
--
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php