Warnings when upgrading a CakePHP application to PHP 5.3

If you’re moving to PHP 5.3, you’ll find that CakePHP throws a lot of “Deprecated” warnings. Since Cake sets error_reporting to E_ALL, you’ll have to edit the core. Change cake/libs/configure.php as follows:

error_reporting(E_ALL);

to

error_reporting(E_ALL ^ E_DEPRECATED);

That should do it.

Leave a Reply

Your email address will not be published. Required fields are marked *