|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-02-23 19:32 UTC] iliaa@php.net
[2005-03-14 14:55 UTC] marcus at synchromedia dot co dot uk
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 24 19:00:02 2025 UTC |
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.