问题
Recently upgrading to PHP 5.3 has resulted in a slew of depreciation errors being shown on my pages. In php.ini I have display_errors off and error_reporting = E_ALL ^ E_DEPRECATED, but the errors still show. Ideas?
回答1:
Your script could be setting the error reporting level differently. Preferably at the end of the page that's having problems run:
phpinfo();
It will give you the global, and local values for display_errors. It's likely been turned on at some point.
If you establish that it's being turned back on, you'll need to find where it's turned back on, and remove that. Searching for ini_set() within your project will probably help.
回答2:
In order to apply this sort of change, you have to reload apache.
回答3:
restart PHP and execute script like this:
<?php
phpinfo();
?>
to confirm changes
来源:https://stackoverflow.com/questions/5526983/why-is-php-still-displaying-errors