1
votes

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?

3
Are you sure the ini has been loaded after the edit? Maybe apache configuration overrides php flags. - Eliasdx

3 Answers

4
votes

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.

0
votes

In order to apply this sort of change, you have to reload apache.

0
votes

restart PHP and execute script like this:

<?php
  phpinfo();
?>

to confirm changes