> On Sunday 25 May 2003 20:42, matze wrote:
> > on a redhat 8.0 box with php 4.1.2 rpm (from rh v7.2) installed
> > the ereg.* functions don't work as i expect. in some cases -
> > especially when "\r\n" sequences are involved - the ereg functions
> > don't match a string, although they should. i tested with the same
> > code on several machines, it works fine on all, only the above
> > mentioned redhat box causes problems:
> >
> > $foo ="barB\r\nfoo\r\n";
> > if(ereg(".+\r\nfo", $foo))
> > {
> > print('matched');
> > }
> > else
> > {
> > print('not matched');
> > }
> >
> > i expect the output 'matched', and actually i get it on all machines
> > but the redhat box.
>
> FWIW using RH7.2, PHP 4.3.0 compiled from source the above matches.
>
> > any idea what could be the reason for this behaviour?
>
> Stab in the darK: as of RH8 the locale settings were changed, not sure
> whether
> this has any bearing on your problem. Best ask on the RH list.will have a look at this point > Another thing, when you installed php didn't it complain? RH7.2 used > Apache > 1.3.X and RH8 uses Apache 2.X. i installed also apache 1.3.27 from the rh 7.2 rpm ;-) > BTW you're probably better off using the preg*() functions anyway. prob is that the critical part of code is in a standard peace of software (xmlrpc) that i'd like avoid to modify. thx /matze -- ( ( ( i ) ) ) http://barcelona.indymedia.org ( ( ( i ) ) ) * using free software / Debian GNU/Linux | http://debian.org * gpg --keyserver keys.indymedia.org --recv-keys B9A88F6F "La guerra es un acto abominable en el que se matan personas que no se conocen, dirigidas por personas que se conocen y no se matan"
pgp00000.pgp
Description: PGP signature

