ID: 28349 User updated by: jonathan at nationaldirect dot net Reported By: jonathan at nationaldirect dot net Status: Open Bug Type: Output Control Operating System: Win2k PHP Version: 4.3.6 New Comment:
I have figured it out. This is not a php bug but rather a Windows folder security settings issue. Something in IIS is setting default to deny write access to some users like "Web Anonymous Users" and "IUSR_computername" accounts. If the user "Web Anonymous Users" is denied write access to the folder then the output will be directed to the webpage. When I manually remove DENY WRITE ACCESS from the folder where the phperrors.log file is to be then all is ok. I still think this is a bug because it still allows erros to display even when display_errors = off. Previous Comments: ------------------------------------------------------------------------ [2004-06-07 16:13:33] jonathan at nationaldirect dot net I just upgraded to php 4.3.7 on the off chance the bug was fixed but no luck. It exists there too. ------------------------------------------------------------------------ [2004-06-07 15:57:35] jonathan at nationaldirect dot net I also have error_log = php_errors.log to log errors and stuff to a file in the same folder as the script. ------------------------------------------------------------------------ [2004-06-07 15:55:27] jonathan at nationaldirect dot net I have done some more investigation and this is what I found. If I set error_reporting = E_ALL & ~E_NOTICE instead of error_reporting = E_ALL the bug goes away. It seems that only the Notices are slipping through to the webpages. ------------------------------------------------------------------------ [2004-06-05 01:00:03] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2004-06-04 21:47:49] sam at freepeers dot com I had a similar problem. IIS5, Windows 2000 Server. Set: display_errors = Off log_errors = On However, I did not specify where the log_errors should log errors to. The result was that I got display errors in the resulting webpages. Then I set this: error_log = syslog The display errors stopped after that. However, this really looks like we've happened upon a bug. display_errors = Off means display_errors should off under all circumstances. There is just no valid explanation for why I could set display_errors = Off and still get display errors. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/28349 -- Edit this bug report at http://bugs.php.net/?id=28349&edit=1