#32066 [NEW]: display_errors=off also suppresses output from php -l
| From: | marcus at synchromedia dot co dot uk | Date: | Tue, 22 Feb 2005 15:07:51 +0000 |
| Subject: | #32066 [NEW]: display_errors=off also suppresses output from php -l | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-74424@lists.php.net to get a copy of this message | ||
From: marcus at synchromedia dot co dot uk
Operating system: RedHat Enterprise Linux 3
PHP version: 5.0.3
PHP Bug Type: PHP options/info functions
Bug description: display_errors=off also suppresses output from php -l
Description:
------------
In php5, if php.ini contains a display_errors=off
directive, it also suppresses error details from 'php
-l' on a command line. I guess this could be a
deliberate change in pHP5, but it is really not very
helpful as php -l will only ever be run by developers.
This is in contrast to php4, which always shows errors
from php -l, even if display_errors is off.
Reproduce code:
---------------
execute this script (containing a deliberate error) using php -l on a
command line with display_errors turned off
<?php
print trim('hello';
?>
Expected result:
----------------
Parse error: parse error, unexpected ';' in /home/
username/error.php on line 2
Actual result:
--------------
no output is generated at all.
--
Edit bug report at http://bugs.php.net/?id=32066&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32066&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32066&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32066&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=32066&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=32066&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=32066&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=32066&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=32066&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32066&r=support
Expected behavior: http://bugs.php.net/fix.php?id=32066&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=32066&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=32066&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=32066&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32066&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=32066&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=32066&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32066&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=32066&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=32066&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=32066&r=mysqlcfg