PHP's magic quotes to be disabled by default?
It looks like they may disable magic quotes by default in PHP version 5. While that's a great step, it doesn't change the code you have to write unless it's gone altogether. If you want to write portable code that doesn't break when someone changes an ini setting, you have to test get_magic_quotes_gpc() everywhere. Next best, however, would be the ability to disable magic quotes on the script level - an ability which doesn't exist now because of the way PHP parses input. If I could turn magic quotes off at the top of my script I'd be very happy.
You know, if I ever got involved in hacking PHP, that'd be the first thing I'd want to fix. The PHP source seems very readable... I should really look into getting involved.
Feel free to post a comment below. Please see my comment policy.
Formatting Rules (No HTML):