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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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: Tue Sep 10 23:01:27 2024 UTC