Re: double output from trigger_error from command line

From: Date: Wed, 18 Jul 2007 18:28:18 +0000
Subject: Re: double output from trigger_error from command line
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-259138@lists.php.net to get a copy of this message
From: "Instruct ICC" <instructicc@hotmail.com>
From: "Olav Mørkrid" <olav.morkrid@gmail.com> 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.
What do you get with: php -r "error_reporting(E_USER_ERROR); trigger_error(\"hello\", E_USER_ERROR);" "Show only user errors" But you may be interested in other errors, warnings, or notices (system versus user)?
Hmm, I'm seeing the behavior you mentioned on PHP 5.1.6 box, but not on PHP 4.4.4. _________________________________________________________________ http://liveearth.msn.com

« previous php.general (#259138) next »