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 <[EMAIL PROTECTED]> 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.

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

Reply via email to