# Making ereg extension optional ?

- Thread: https://externals.io/message/40481
- Original archive: https://news-web.php.net/php.internals/40481
- Started by Arnaud Le Blanc on 2008-09-12T16:21:14+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

---

## #40481 — Arnaud Le Blanc — 2008-09-12T16:21:14+00:00

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

Hi,

PHP now builds and works without ereg, is it planed to make it optional ?

Regards,

Arnaud

---

## #40482 — Pierre Joye — 2008-09-12T17:16:24+00:00

URL: https://externals.io/message/40481#40482 · In reply to: #40481

hi,


> Hi,
>
> PHP now builds and works without ereg, is it planed to make it optional ?

It is planed to drop it so I suppose optional can be a first step. I
remember something about adding a BC layer using pcre, I'm not sure if
it is done yet. However I would not do it in 5.x.

Cheers,
-- 
Pierre
http://blog.thepimp.net | http://www.libgd.org

---

## #40500 — Lukas Kahwe Smith — 2008-09-13T08:44:41+00:00

URL: https://externals.io/message/40481#40500 · In reply to: #40482

> hi,
>
> On Fri, Sep 12, 2008 at 6:21 PM, Arnaud Le Blanc  
> <arnaud.lb@gmail.com> wrote:
> > […]
>
> It is planed to drop it so I suppose optional can be a first step. I
> remember something about adding a BC layer using pcre, I'm not sure if
> it is done yet. However I would not do it in 5.x.


I think Andrei was pondering doing such a BC layer for PHP6, but I  
dont think this has been done yet. I think there were still  
discussions about if its feasible at all. This also means that there  
were discussions about if to even drop it, but I think we agreed on  
dropping it in the end, so I guess using ereg should throw an  
 `E_DEPRECATED` in 5.3?

I am not sure if we should make it optional in 5.3 though.

regards,
Lukas Kahwe Smith
mls@pooteeweet.org

---

## #40502 — Lukas Kahwe Smith — 2008-09-13T09:30:17+00:00

URL: https://externals.io/message/40481#40502 · In reply to: #40482

> hi,
>
> On Fri, Sep 12, 2008 at 6:21 PM, Arnaud Le Blanc  
> <arnaud.lb@gmail.com> wrote:
> > […]
>
> It is planed to drop it so I suppose optional can be a first step. I
> remember something about adding a BC layer using pcre, I'm not sure if
> it is done yet. However I would not do it in 5.x.


I think Andrei was pondering doing such a BC layer for PHP6, but I  
dont think this has been done yet. I think there were still  
discussions about if its feasible at all. This also means that there  
were discussions about if to even drop it, but I think we agreed on  
dropping it in the end, so I guess using ereg should throw an  
 `E_DEPRECATED` in 5.3?

I am not sure if we should make it optional in 5.3 though.

regards,
Lukas Kahwe Smith
mls@pooteeweet.org

---

## #40504 — Lars Strojny — 2008-09-13T19:20:49+00:00

URL: https://externals.io/message/40481#40504 · In reply to: #40500

Hi Lukas,

Am Samstag, den 13.09.2008, 10:44 +0200 schrieb Lukas Kahwe Smith:
> This also means that there  
> were discussions about if to even drop it, but I think we agreed on  
> dropping it in the end, so I guess using ereg should throw an  
> `E_DEPRECATED` in 5.3?

I totally support this and would even do the necessary changes if we
reach a consensus here.

cu, Lars
-- 
   Jabber: lars@strojny.net
   Weblog: http://usrportage.de
