# E_DEPRECATED for 5.3

- Thread: https://externals.io/message/35538
- Original archive: https://news-web.php.net/php.internals/35538
- Started by Lars Strojny on 2008-02-16T01:14:54+00:00
- Messages: 5
- 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

---

## #35538 — Lars Strojny — 2008-02-16T01:14:54+00:00

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

Hi all,

I've heard that `E_DEPRECATED` is still missing nevertheless its
introduction is planned for 5.3. So I've wrote it [1] based on a
slightly outdated patch by Felipe. The patch is so far complete, as far
as I can tell, but one thing I'm wondering about is whether we should
trigger `E_DEPRECATED` warnings if the related ini-settings are present
(magic_quotes_gpc, magic_quotes_runtime, register_globals). I would say
yes, but I need some advice where to do that.

For the docs team: I've added links in the `E_DEPRECATED` messages to
http://php.net/{migrate}#<deprecated func>. The "{migrate}"-part can
later be easily replaced once the appendix to the migration guide which
explains how to deal with this deprecations is set up.

[1] http://lars.schokokeks.org/php/e_deprecated-2.diff

cu, Lars
-- 
  »Aber das Verhältnis von Leben und Produktion, das jenes
   real herabsetzt zur ephemeren Erscheinung von dieser, ist
   vollendet widersinnig. Mittel und Zweck werden vertauscht.«
       -- Theodor W. Adorno, »Minima Moralia«, Die traurige Wissenschaft

Lars Strojny
Nießenstr. 36
51103 Cologne
Jabber/Mail: lars@strojny.net
Weblog: http://usrportage.de

---

## #35539 — Marcus Boerger — 2008-02-16T10:00:24+00:00

URL: https://externals.io/message/35538#35539 · In reply to: #35538

Hello Lars,

  thanks for doing the work. I'll apply the patch during next week. And yes
you should emit deprecation messages for use of INI settings that are going
to be dropped in 6.0.

marcus

Saturday, February 16, 2008, 2:14:54 AM, you wrote:

> Hi all,

> I've heard that `E_DEPRECATED` is still missing nevertheless its
> introduction is planned for 5.3. So I've wrote it [1] based on a
> slightly outdated patch by Felipe. The patch is so far complete, as far
> as I can tell, but one thing I'm wondering about is whether we should
> trigger `E_DEPRECATED` warnings if the related ini-settings are present
> (magic_quotes_gpc, magic_quotes_runtime, register_globals). I would say
> yes, but I need some advice where to do that.

> For the docs team: I've added links in the `E_DEPRECATED` messages to
> http://php.net/{migrate}#<deprecated func>. The "{migrate}"-part can
> later be easily replaced once the appendix to the migration guide which
> explains how to deal with this deprecations is set up.

> [1] http://lars.schokokeks.org/php/e_deprecated-2.diff

> cu, Lars



Best regards,
 Marcus

---

## #35541 — Hannes Magnusson — 2008-02-16T11:55:22+00:00

URL: https://externals.io/message/35538#35541 · In reply to: #35538

> For the docs team: I've added links in the `E_DEPRECATED` messages to
> http://php.net/{migrate}#<deprecated func>. The "{migrate}"-part can
> later be easily replaced once the appendix to the migration guide which
> explains how to deal with this deprecations is set up.

Those links should probably be created in php_verror(), not manually.

>
> [1] http://lars.schokokeks.org/php/e_deprecated-2.diff

get_magic_quotes_runtime() and friends should probably be using
PHP_DEP_FE, not throwing an error themselves.

-Hannes

---

## #35547 — Lukas Kahwe Smith — 2008-02-18T09:33:01+00:00

URL: https://externals.io/message/35538#35547 · In reply to: #35538

> I've heard that `E_DEPRECATED` is still missing nevertheless its
> introduction is planned for 5.3. So I've wrote it [1] based on a
> slightly outdated patch by Felipe. The patch is so far complete, as  
> far

Thx!

> as I can tell, but one thing I'm wondering about is whether we should
> trigger `E_DEPRECATED` warnings if the related ini-settings are present
> (magic_quotes_gpc, magic_quotes_runtime, register_globals). I would  
> say
> yes, but I need some advice where to do that.

like others have said .. yes .. these should emit deprecated warnings.

> For the docs team: I've added links in the `E_DEPRECATED` messages to
> http://php.net/{migrate}#<deprecated func>. The "{migrate}"-part can
> later be easily replaced once the appendix to the migration guide  
> which
> explains how to deal with this deprecations is set up.

very cool!

>  »Aber das Verhältnis von Leben und Produktion, das jenes
>   real herabsetzt zur ephemeren Erscheinung von dieser, ist

<snip>

please do follow the mailinglist rules and keep your signature to 2  
lines max:
http://php.net/reST/php-src/README.MAILINGLIST_RULES

in that context i would like to also remind people that they could be  
doing a better job at quoting. this is not about perfection (which is  
probably hard to define on this anyways), but just try to remember  
that a few seconds of effort will save a couple thousand people at  
least as many seconds.

regards,
Lukas

---

## #35548 — Lars Strojny — 2008-02-18T09:54:25+00:00

URL: https://externals.io/message/35538#35548 · In reply to: #35547

Hi Lukas,

Am Montag, den 18.02.2008, 10:33 +0100 schrieb Lukas Kahwe Smith:
[... deprecated ini settings ...]
> like others have said .. yes .. these should emit deprecated warnings.

Would be great if someone could give me a hint where this should be
done. I'm pretty new to the php-src, so I need some advice.
[...]
> please do follow the mailinglist rules and keep your signature to 2  
> lines max:
> http://php.net/reST/php-src/README.MAILINGLIST_RULES

Sorry, seems like a read the rules not carefully enough. Going to use
another signature from now on.

cu, Lars
-- 
Lars Strojny
Senior Software Developer MediaVentures GmbH (http://mediaventures.de)
