Re: Why is ereg being deprecated?

From: Date: Mon, 12 Oct 2009 19:53:35 +0000
Subject: Re: Why is ereg being deprecated?
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.internals 
Request: Send a blank email to internals+get-45790@lists.php.net to get a copy of this message
Ooops: On Mon, Oct 12, 2009 at 01:48:28PM -0600, Joey Smith wrote: > $delimiters = array(chr(1),chr(1),chr(1),chr(1),chr(1),chr(1),'/', '@', > '#', '%', '_'); should have been $delimiters = array(chr(1),chr(2),chr(3),chr(4),chr(5),chr(6),'/', '@', '#', '%', '_'); I used these because given the feature-set of ereg, it seems unlikely that people were passing binary strings into ereg() today, but again - the people who *use* ereg should give it some thought. I'm confident there's a simple path forward for you just by providing the function in "userland" if you do so.

« previous php.internals (#45790) next »