Re: double output from trigger_error from command line

From: Date: Wed, 18 Jul 2007 18:23:17 +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-259137@lists.php.net to get a copy of this message
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)? _________________________________________________________________ http://newlivehotmail.com

« previous php.general (#259137) next »