Re: magic quotes finale

From: Date: Fri, 23 May 2008 03:20:11 +0000
Subject: Re: magic quotes finale
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-37814@lists.php.net to get a copy of this message
Hi, Just making sure I understood it well. Get isn't deprecated (good), set is (good), but what happens if I try to set magic quotes runtime *off* if it was *on* from the config. I couldn't see anything about the PHP config setting being ignored/removed or throwing error in the RFC. For code that must be portable, and I don't have access to server/PHP config, I often have something like this in init: if (get_magic_quotes_runtime()) { set_magic_quotes_runtime(0); } if (get_magic_quotes_gpc()) { include 'a_snippet_that_recursively_strips_slashes_off_gpc.php'; } Regards, Stan Vassilev

« previous php.internals (#37814) next »