mariachimike Posted October 9, 2007 Share Posted October 9, 2007 Hi, I'm confused because I have set the display_errors value in the php.ini file to Off but I'm still seeing errors displayed back to the browser. Using phpinfo(), I noticed that the master value for display_errors is Off but the local value is On. So my question is: where is the local value for display_errors and other php.ini directives set? I've already checked and confirmed that I'm only loading a single php.ini file. Any help would be appreciated, thanks! Quote Link to comment https://forums.phpfreaks.com/topic/72444-solved-set-display_error-to-off-in-phpini-still-displaying-errors/ Share on other sites More sharing options...
MasterACE14 Posted October 9, 2007 Share Posted October 9, 2007 why not fix the errors instead? Quote Link to comment https://forums.phpfreaks.com/topic/72444-solved-set-display_error-to-off-in-phpini-still-displaying-errors/#findComment-365323 Share on other sites More sharing options...
mariachimike Posted October 9, 2007 Author Share Posted October 9, 2007 It's mainly a security feature for our production deployment. We enable logging and disable display so not to reveal anything remotely "interesting" to malicious users. Of course, we enable error display for our local development environment so we can find bugs, but there's always the chance that something goes wrong even after rigorous testing. Quote Link to comment https://forums.phpfreaks.com/topic/72444-solved-set-display_error-to-off-in-phpini-still-displaying-errors/#findComment-365327 Share on other sites More sharing options...
mariachimike Posted October 11, 2007 Author Share Posted October 11, 2007 Well, after some rooting around with Google, I found the following link: http://smart-pad.blogspot.com/2006/05/phpinfo-master-and-local-value.html So, if you have issues where your "Local Value" and "Master Value" are different for your PHP settings, check out your .htaccess file. It's likely that your php.ini setting (or the default setting) was overridden by the setting in your .htaccess file, as it was in my case. Quote Link to comment https://forums.phpfreaks.com/topic/72444-solved-set-display_error-to-off-in-phpini-still-displaying-errors/#findComment-366800 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.