Re: Array Symbol Suggestion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jan 12, 2011 at 12:37 PM, Daniel Brown <danbrown@xxxxxxx> wrote:

> Â ÂThe @ is an error control operator, used to buffer the output and
> store it in a variable - $php_errormsg. ÂThere's no way that would be
> changed to become an array designator (though that doesn't mean your
> idea itself is a bad one).

@ squelches error messages.

AFAIK $php_errormsg is the last error that PHP incurred. not based on "@"

"@" just silences the errors from being reported, which is a "bad
thing" as error collection is done even if error_reporting is off, it
is still built internally as a string, that's why developing with
E_ALL and E_STRICT even on is the best practice. even notices wind up
adding to the internal error/etc. string stack.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux