ID: 32066 Updated by: [EMAIL PROTECTED] Reported By: marcus at synchromedia dot co dot uk -Status: Open +Status: Bogus Bug Type: PHP options/info functions Operating System: RedHat Enterprise Linux 3 PHP Version: 5.0.3 New Comment:
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Error display ini setting affects all error reporting. Previous Comments: ------------------------------------------------------------------------ [2005-02-22 16:07:50] marcus at synchromedia dot co dot uk 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 this bug report at http://bugs.php.net/?id=32066&edit=1