php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28140 html_errors is *on* for CLI
Submitted: 2004-04-25 04:06 UTC Modified: 2004-04-25 07:09 UTC
From: php at richardneill dot org Assigned:
Status: Not a bug Package: CGI/CLI related
PHP Version: 5.0.0RC1 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: php at richardneill dot org
New email:
PHP Version: OS:

 

 [2004-04-25 04:06 UTC] php at richardneill dot org
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)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-25 05:30 UTC] pollita@php.net
Not reproducable here, double check that you are indeed using the CLI version of PHP:

/usr/local/bin/php -v
 [2004-04-25 06:10 UTC] php at richardneill dot org
Quite right - I do apologise. I had simply assumed that
a script which began with
#!/usr/local/bin/php
would be the CLI version. 
(That's how it used to work, with the Mandrake rpms, but 
I had to compile it myself to have --enable-sockets), and the default wasn't what I expected.

Sorry for wasting your time.

Richard
 [2004-04-25 07:09 UTC] pollita@php.net
For reference the installation behavior for $EPREFIX/php is documented here:

http://www.php.net/manual/en/features.commandline.php
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 10:01:32 2024 UTC