ID: 32707 Updated by: [EMAIL PROTECTED] Reported By: ion at in-dev dot de -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: Linux/Windows 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 Parse errors are thrown before your script (and thus also your ini_set() lines) starts executing... so it never resets them. You need a .htaccess file or modify php.ini for this. Previous Comments: ------------------------------------------------------------------------ [2005-04-14 21:36:21] ion at in-dev dot de 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=32707&edit=1