#48275 [Opn->Bgs]: write errors to STDERR, by default
ID: 48275
Updated by: jani@php.net
Reported By: jidanni at jidanni dot org
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
PHP Version: 5.2.9
New Comment:
You can set this without display_errors ini directive to whatever you
want. This is not a bug. (see http://php.net/display_errors )
Previous Comments:
------------------------------------------------------------------------
[2009-05-14 07:14:12] jidanni at jidanni dot org
Description:
------------
I can't believe that PHP writes its error messages to STDOUT by
default
instead of STDERR. (At least you don't have them BOTH reversed.)
$ php lyrics.php |colrm 77
Warning: Unexpected character in input: ''' (ASCII=39) state=1 in
Parse error: syntax error, unexpected ')' in /home/jidanni/audio/
$ php -r WRONG
Parse error: syntax error, unexpected $end in Command line code on line
1
At least on the _man page_ mention you are doing it on purpose because
you fear it will flood some log or something.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48275&edit=1
Thread (4 messages)