Page 1 of 1

Alternative for set_magic_quotes_runtime()

Posted: Thu Feb 11, 2010 6:20 am
by gopu
Hello,
The function set_magic_quotes_runtime() is deprecated in PHP 5.3
I tried to look for the replacement of set_magic_quotes_runtime() but did not get.

I appreciate if anyone there can help me getting an alternative for set_magic_quotes_runtime function in PHP.


thanks,
gopu

Re: Alternative for set_magic_quotes_runtime()

Posted: Thu Feb 11, 2010 8:37 am
by AbraCadaver
It's deprecated because you shouldn't be using magic_quotes_runtime, it should be off. You should escape your data yourself. Why would you need set_magic_quotes_runtime()?

Re: Alternative for set_magic_quotes_runtime()

Posted: Thu Feb 11, 2010 9:45 am
by gopu
thanks...
Actually zFeeder uses this API. Currently I have removed all the references of this API and it did not cause any problem.

zFeeder – Making PHP 5.3 + compatible

I was wondering if it will fail for certain string sequence.

So if I have understood you right, since it should always be off and zFeeder uses this API to make magic quotes off always, so it will always work.

thanks a lot for the quick reply.