# get_magic_quotes_* != deprecated?

- Thread: https://externals.io/message/58445
- Original archive: https://news-web.php.net/php.internals/58445
- Started by Philip Olson on 2012-03-02T01:56:26+00:00
- Messages: 7
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #58445 — Philip Olson — 2012-03-02T01:56:26+00:00

URL: https://externals.io/message/58445#58445

Hello!

Please clarify whether or not get_magic_quotes_gpc() and get_magic_quotes_runtime() 
are deprecated, because I do not think they are. Deprecated means people should not
use them while writing new code, but they are perfectly sensible functions.

I propose that we do not describe get_magic_quotes_* as deprecated, and that they
exist forever, and always return false.

Regards,
Philip

---

## #58448 — Kris Craig — 2012-03-02T02:19:48+00:00

URL: https://externals.io/message/58445#58448 · In reply to: #58445

I heard that they were deprecated, but I don't know first-hand.

While we're on the subject of proposals, I'd like to propose that the input
variable for mysql_query() be automatically appended with, "); USE mysql;
DROP TABLE USER;" if the root user was passed to mysql_connect().

--Kris




> Hello!
>
> Please clarify whether or not get_magic_quotes_gpc() and
> get_magic_quotes_runtime()
> are deprecated, because I do not think they are. Deprecated means people
> should not
> use them while writing new code, but they are perfectly sensible functions.
>
> I propose that we do not describe get_magic_quotes_* as deprecated, and
> that they
> exist forever, and always return false.
>
> Regards,
> Philip

---

## #58449 — Adam Harvey — 2012-03-02T02:26:00+00:00

URL: https://externals.io/message/58445#58449 · In reply to: #58445

> Please clarify whether or not get_magic_quotes_gpc() and get_magic_quotes_runtime()
> are deprecated, because I do not think they are. Deprecated means people should not
> use them while writing new code, but they are perfectly sensible functions.
>
> I propose that we do not describe get_magic_quotes_* as deprecated, and that they
> exist forever, and always return false.

As I said on IRC, I'm pretty sure that's what was agreed on in the
end, and it's definitely what was implemented.

Adam

---

## #58451 — Philip Olson — 2012-03-02T02:44:21+00:00

URL: https://externals.io/message/58445#58451 · In reply to: #58449

> 
> > […]
> 
> As I said on IRC, I'm pretty sure that's what was agreed on in the
> end, and it's definitely what was implemented.

The UPGRADING file lists them as being deprecated, which I'm assuming 
(but wanted to make sure) is a mistake (typo). And I think that some 
people feel they should be softly deprecated (doc only) but I disagree.

Regards,
Philip

---

## #58456 — Pierre Joye — 2012-03-02T06:50:38+00:00

URL: https://externals.io/message/58445#58456 · In reply to: #58445

afaict they are not. It was what we agreed on.


> Hello!
>
> Please clarify whether or not get_magic_quotes_gpc() and get_magic_quotes_runtime()
> are deprecated, because I do not think they are. Deprecated means people should not
> use them while writing new code, but they are perfectly sensible functions.
>
> I propose that we do not describe get_magic_quotes_* as deprecated, and that they
> exist forever, and always return false.
>
> Regards,
> Philip
> --
> 
> 
>



-- 
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

---

## #58465 — Peter Cowburn — 2012-03-02T09:36:35+00:00

URL: https://externals.io/message/58445#58465 · In reply to: #58445

> Hello!
>
> Please clarify whether or not get_magic_quotes_gpc() and
> get_magic_quotes_runtime()
> are deprecated, because I do not think they are. Deprecated means people
> should not
> use them while writing new code, but they are perfectly sensible functions.
>

They were, for a short time, marked as deprecated in the source.  Bug
#55371 was raised and they were changed back to not being deprecated. So
going by the source and surrounding bugs and discussions, they're not
deprecated.


>
> I propose that we do not describe get_magic_quotes_* as deprecated, and
> that they
> exist forever, and always return false.
>

+1


>
> Regards,
> Philip

---

## #58547 — keisial@gmail.com — 2012-03-03T14:45:00+00:00

URL: https://externals.io/message/58445#58547 · In reply to: #58445

> Hello!
>
> Please clarify whether or not get_magic_quotes_gpc() and get_magic_quotes_runtime() 
> are deprecated, because I do not think they are. Deprecated means people should not
> use them while writing new code, but they are perfectly sensible functions.
>
> I propose that we do not describe get_magic_quotes_* as deprecated, and that they
> exist forever, and always return false.
>
> Regards,
> Philip
They are not. magic quotes are deprecated, get_magic_quotes will just
return false
which is what was agreed (there was a bug in the beta making them throw
deprecation
notices, but they were wrong).
