News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Arpad Ray's Blog:
The adventure of PHP and the magic quotes
December 17, 2008 @ 12:03:07

One of the things that's been hanging around PHP's neck since its early days is the magic_quotes setting that was introduces to try to make things easier. In this interesting post Arpad Ray takes a look at this setting and why its a bad thing for PHP to have around.

Like register_globals, it helped lower the barrier of entry to building a dynamic website by removing some of the complexity. However it certainly wasn't without sacrifice, problems with the implementation quickly appeared and continued to abound for the next ten years. Finally in PHP 5.2.2 we got an implementation which (as far as its intentions went) seemed to be bug free, but of course by then it was turned off by default and was already slated to be dropped in PHP 6.

He looks at a few reasons they're bad (not good enough for escaping, inconsistent, performance issues) and some methods - code snippets - on how to deal with it being turned on on your server.

2 comments voice your opinion now!
adventure magic quotes bad php5 php6 fix


blog comments powered by Disqus

Similar Posts

Davey Shafik's Blog: php|architect's Zend PHP 5 Certification Study Guide, 2nd Edition

PHPCult.com: PHP, Laziness and the consequences of bad habits

Greg Beaver's Blog: behold pecl/phar and mighty PHP 5.3, also php|arch and php|tek

DevShed: Throwing Basic Exceptions When Auto Loading Classes in PHP 5

Ibuildings Blog: T minus one (the PHP4 8-8-08 Deadline)


Community Events

Don't see your event here?
Let us know!


conference library podcast psr7 laravel release opinion introduction language development video series api unittest framework community laravel5 extension voicesoftheelephpant interview

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework