[dev] mcrypt, magic_quotes_runtime

Chuck Hagenbuch chuck@horde.org
Sun, 16 Dec 2001 22:52:39 -0500


Quoting Jon Parise <jon@horde.org>:

> Right, a few years ago we required that setting to be (on|off)
> (I forget which), but we went through the code afterward in an
> effort to make things work either way (via dispelMagicQuotes).

Horde::getFormData() calls dispelMagicQuotes() automatically, btw. However, 
Brent was asking about magic_quotes_runtime; magic_quotes_gpc is what we 
account for now.

magic_quotes_runtime does something rather different and programatically 
horrible. From the manual:

If magic_quotes_runtime is enabled, most functions that return data from any 
sort of external source including databases and text files will have quotes 
escaped with a backslash. If magic_quotes_sybase is also on, a single-quote is 
escaped with a single-quote instead of a backslash. 

So I think we still want that off. We might want to stick an ini_set() to make 
sure into base.php something, too. Or get it completely removed from PHP.

-chuck

--
Charles Hagenbuch, <chuck@horde.org>
"What was and what may be, lie, like children whose faces we cannot see, in the
arms of silence. All we ever have is here, now." - Ursula K. Le Guin