Re: double output from trigger_error from command line
| From: | Olav Mørkrid | Date: | Wed, 18 Jul 2007 17:31:28 +0000 |
| Subject: | Re: double output from trigger_error from command line | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-259131@lists.php.net to get a copy of this message | ||
sorry. still get it twice.
c:\>php -r "error_reporting(E_ALL ^ E_NOTICE);
trigger_error(\"hello\", E_USER_ERROR);"
PHP Fatal error: hello in Command line code on line 1
Fatal error: hello in Command line code on line 1
- if i do error_reporting(0) then i get NO lines at all. and if i do
error_reporting(E_NOTICE) and then trigger_error("hello", E_NOTICE) i
get two again.
so there must be some setting beside error_reporting.
On 17/07/07, Instruct ICC <instructicc@hotmail.com> wrote:
My error_reporting level was at 2039 and I did not see the double messages. But I think you need to manipulate the error_reporting level. Maybe something like: php -r "error_reporting(E_ALL ^ E_NOTICE); trigger_error(\"hello\", E_USER_ERROR);" "Show me every report except E_NOTICE, and then trigger an E_USER_ERROR which says 'hello'" Sorry, I didn't reply to the list the first time.