I've just upgraded PHP to 5.3.0 on my development server and found all
of my Cake sites have about 20 warning messages starting with
"Deprecated: Assigning the return value of new by reference is
deprecated...". Changes to the error_reporting configuration in
php.ini could not get rid of them. With cake debug level at 1 or
higher, the only fix I've been able to come up with is bad as it
requires a (tiny) change to core file cake/libs/configure.php.
Changing line 295 from error_reporting(E_ALL); to error_reporting
(E_ALL ^ E_DEPRECATED); and then adding error_reporting(E_ALL ^
E_DEPRECATED); to the top of app/webroot/index.php removes all of the
warnings. Does anyone have a better solution?