#22895 [Opn->Asn]: PHP cli outputs errors in text AND html
| From: | edink@php.net | Date: | Wed, 26 Mar 2003 13:45:31 +0000 |
| Subject: | #22895 [Opn->Asn]: PHP cli outputs errors in text AND html | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-36480@lists.php.net to get a copy of this message | ||
ID: 22895
Updated by: edink@php.net
Reported By: mfischer@php.net
-Status: Open
+Status: Assigned
Bug Type: Output Control
Operating System: Linux
PHP Version: 5CVS-2003-03-26 (dev)
-Assigned To:
+Assigned To: helly
New Comment:
Marcus, could you have a look at this?
Previous Comments:
------------------------------------------------------------------------
[2003-03-26 07:08:11] mfischer@php.net
PHP cli outputs errors in text AND html when using it like:
php application.php
However, it does _not_ output HTML errors if you use the '-r' syntax:
$ php -r try
Command line code(1) : Parse error - parse error, unexpected $end,
expecting '{'
But from a file:
$ cat application.php
<?php try ?>
$ php application.php
<br />
<b>Parse error</b>: parse error, unexpected ';', expecting '{' in
<b>/home/mfischer/src/php/ze2/apptest/application.php</b> on line
<b>1</b><br />
/home/mfischer/src/php/ze2/apptest/application.php(1) : Parse error -
parse error, unexpected ';', expecting '{'
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22895&edit=1