From:             php at richardneill dot org
Operating system: Linux
PHP version:      5.0.0RC1
PHP Bug Type:     CGI related
Bug description:  html_errors is *on* for CLI

Description:
------------
Using php from the command line, the error messages include html tags. The
html_errors directive is supposed to be overridden for PHP-CLI:
http://uk.php.net/manual/en/features.commandline.php



Reproduce code:
---------------
#!/usr/local/bin/php -q
<? 
echo "no semicolon"
?>



run this from the command line.

Expected result:
----------------
Parse error: parse error, expecting `','' or `';'' in /home/rjn/test.php
on line 4

(this is what I see using PHP 4.3.3)

Actual result:
--------------
<br />
<b>Parse error</b>:  parse error, unexpected T_VARIABLE, expecting ',' or
';' in <b>/home/rjn/test/php</b> on line <b>4</b><br />

(this is what I see in PHP 5.0.0RC1)

-- 
Edit bug report at http://bugs.php.net/?id=28140&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28140&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28140&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=28140&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=28140&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=28140&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=28140&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=28140&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=28140&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=28140&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=28140&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=28140&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=28140&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28140&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=28140&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=28140&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=28140&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28140&r=float

Reply via email to