Magic Quotes: Finally Deprecated

As of PHP 5.3.0 Magic Quotes have been deprecated. Thank gosh. And they will be totally removed in PHP 6.0.0. That’s just one of the many things that have been deprecated in PHP 5.3.0 Register Globals will suffer the same fate as Magic Quotes. PHP Safe Mode was also deprecated. That’s just a few, you should take a look at the deprecated features list.

CakePHP on PHP 5.3.0CakePHP, unfortunatly, just doesn’t wanna get along with the new PHP release. Right now there are two solutions. The first is to revert back to PHP 5.2.9-2. The second is to change error_reporting(E_ALL); on line 295 of cake/libs/configure.php to error_reporting(E_ALL ^ E_DEPRECATED); After that, then add error_reporting(E_ALL ^ E_DEPRECATED); to the beginning of app/webroot/index.php. As far as I know, these are the only two solutions for CakePHP users, at the moment. If you know of either a better solution or more information, please comment!

Hopefully I covered some of the basics of the fairly new PHP 5.3.0 with CakePHP.

PS: Thanks to danielryan on Flickr for the screenshot. ;)

This entry was posted on Sunday, August 2nd, 2009 at 3:00 pm and is filed under Technology, Web Programming. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply