|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-04-14 22:02 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 01 17:00:01 2025 UTC |
Description: ------------ Ok starting, hope you can understand my bad english :) Take a script like: <?php echo "bogus line; ?> With enabled error_reporting and display_errors by php.ini PHP gives a parse error. Turn those two configuration vars off gives you no output. So far so good... Change the script to: <?php ini_set('display_errors',1); ini_set('error_reporting',E_ALL); echo "bogus line; ?> Now PHP should give a parse error, too. Right?! But PHP give no output. Only with the command line cgi version and the parameter -l it tells about a parsing error. I have reproduce this on Linux and Windows with PHP 5.0.3 . Regards Kai Reproduce code: --------------- <?php // turn error_reporting and display_errors off in php.ini // php should give a error reporting to, enabled by the // following lines ini_set('display_errors',1); ini_set('error_reporting',E_ALL); echo "bogus line; ?> Expected result: ---------------- Parse error: parse error, unexpected $ in /root/phptest/bogus.php on line 9 Actual result: -------------- no output