Re: [PHP] double output from trigger_error from command line
There's the display_error_in_browser or whatever it is that might be causing the second output... On Wed, July 18, 2007 12:31 pm, Olav Mørkrid wrote: 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 -- Some people have a gift link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] double output from trigger_error from command line
From: Richard Lynch [EMAIL PROTECTED] There's the display_error_in_browser or whatever it is that might be causing the second output... From the command line? _ http://imagine-windowslive.com/hotmail/?locale=en-usocid=TXT_TAGHM_migration_HM_mini_pcmag_0507 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] double output from trigger_error from command line
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
Re: [PHP] double output from trigger_error from command line
From: Olav Mørkrid [EMAIL PROTECTED] 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] double output from trigger_error from command line
From: Instruct ICC [EMAIL PROTECTED] From: Olav Mørkrid [EMAIL PROTECTED] 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] double output from trigger_error from command line
if i do a trigger_error() when running php scripts from the command line, each error is echoed twice. this is annoying. does anyone know how to make each error display only once? c:\php -r trigger_error(\hello\); PHP Notice: hello in Command line code on line 1 Notice: hello in Command line code on line 1 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] double output from trigger_error from command line
if i do a trigger_error() when running php scripts from the command line, each error is echoed twice. this is annoying. does anyone know how to make each error display only once? c:\php -r trigger_error(\hello\); PHP Notice: hello in Command line code on line 1 Notice: hello in Command line code on line 1 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. _ http://liveearth.msn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] double output from trigger_error from command line
On Tue, July 17, 2007 12:21 pm, Olav Mørkrid wrote: if i do a trigger_error() when running php scripts from the command line, each error is echoed twice. this is annoying. does anyone know how to make each error display only once? c:\php -r trigger_error(\hello\); PHP Notice: hello in Command line code on line 1 Notice: hello in Command line code on line 1 http://php.net/set_error_handler -- Some people have a gift link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php