Page 1 of 1

Fetch Array and Magic Quotes

Posted: 07 Aug 2014, 19:28
by ShadowKatmandu
MantisBT Version 1.2.15
Schema Version 183

This may have been fixed in the current version of Mantis, but one of my calls to db_fetch_array() produces this error:

Function set_magic_quotes_runtime() is deprecated

This was a function to escape any quotes coming from any kind of data retrieval, including database queries. It's a toggle; you turn the quote escaping on or off with it. There appears to be 7 calls to set_magic_quotes_runtime() in Mantis 1.2.15. Have these been removed / commented out in the current version? Is there a workaround to keep the fetch array function from calling the magic quotes function? I don't know why this only happens on one call; I use it elsewhere without issue.

Re: Fetch Array and Magic Quotes

Posted: 07 Aug 2014, 19:49
by atrol
We updated some of the underlying 3rd party libraries since 1.2.15.
There where some changes with PHP versions >= 5.3.0 where set_magic_quotes_runtime is not longer called.

Re: Fetch Array and Magic Quotes

Posted: 07 Aug 2014, 20:31
by ShadowKatmandu
Thanks. I was kinda hoping that would be the case. I am aware of magic_quotes being deprecated and later removed. (It is deprecated in our version.) Now we just have to concern ourselves with upgrading Mantis.