Re: Bug #14879 Updated: ereg_replace incorrectly functioning

From: Date: Sun, 06 Jan 2002 00:34:39 +0000
Subject: Re: Bug #14879 Updated: ereg_replace incorrectly functioning
References: 1 2 3 4  Groups: php.dev 
Request: Send a blank email to php-dev+get-76001@lists.php.net to get a copy of this message
On Sat, Jan 05, 2002 at 04:30:10PM -0800, Jim Winstead wrote : > On Sun, Jan 06, 2002 at 01:14:23AM +0100, Markus Fischer wrote: > > On Sun, Jan 06, 2002 at 12:05:45AM -0000, jimw@php.net wrote : > > > ereg_replace is behaving as designed, more or less. the behavior of an > > > empty first parameter is undefined (although with the bundled regular > > > expression engine, it will leave the string unchanged and display an > > > error message). > > > > To me its quite defined. You get REG_EMPTY warning and the > > return value is false (at leat, since 4.0.6). > > it depends on the regex library used. the bundled one returns REG_EMPTY, > various system regex libraries may behave as the bug reporter saw. if we > want to define one, we should be checking it ourselves. Then we should add such a note to the manual. -- Please always Cc to me when replying to me on the lists.

« previous php.dev (#76001) next »