Fetch Array and Magic Quotes

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
ShadowKatmandu
Posts: 19
Joined: 19 May 2014, 19:46

Fetch Array and Magic Quotes

Post 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.
atrol
Site Admin
Posts: 7881
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Fetch Array and Magic Quotes

Post 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.
Please use Search before posting and read the Manual
ShadowKatmandu
Posts: 19
Joined: 19 May 2014, 19:46

Re: Fetch Array and Magic Quotes

Post 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.
Post Reply