Re: magic quotes finale

From: Date: Fri, 23 May 2008 14:40:27 +0000
Subject: Re: magic quotes finale
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-37826@lists.php.net to get a copy of this message
We have covered this a bunch of times already. magic_quotes_gpc are gone, but we leave in the function that tells userspace code that they are off. get_magic_quotes_gpc() will always return false which means that thousands of applications out there will run unchanged and will simply take the magic_quotes off code path.
Exactly, what I said in my very first reply to this thread. With all respects to Philip, this RFC and discussion are pointless, the solution has been approved and the problem is about to be solved (when I get two and half mins to apply my patch, probably early next week).
But Rasmus, the patch planned by Pierre will emit errors. Even E_WARNING in 6.0. So here's possible upcoming documentation: "Checking for magic quotes is deprecated, as is setting them, so do neither in your code; else suffer errors." And: "Yes, magic_quotes_gpc is on by default in PHP 5.3 but checking its value is deprecated. Instead, assume they are always on or off." Maybe this makes the point clear to everyone? This is my last plea on the subject. Regards, Philip

« previous php.internals (#37826) next »