From 13103e40f064e23888d65debde9dc192eba67eb7 Mon Sep 17 00:00:00 2001 From: Friedhelm Betz Date: Wed, 9 Oct 2002 08:30:45 +0000 Subject: [PATCH] $php_errmsg is not global links to expressions, predefined $php_errmsg git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@98944 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/operators.xml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/language/operators.xml b/language/operators.xml index e61480a797..8f2c328720 100644 --- a/language/operators.xml +++ b/language/operators.xml @@ -1,5 +1,5 @@ - + Operators @@ -406,14 +406,15 @@ $b .= "There!"; // sets $b to "Hello There!", just like $b = $b . "There!"; 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. If the track_errors 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 + $php_errormsg. + This variable will be overwritten on each error, so check early if you + want to use it. @@ -435,9 +436,10 @@ $value = @$cache[$key]; - 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 + 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, function and include calls, constants, and so forth. You cannot prepend it to function or class definitions, or conditional structures such as if and