Re: [PHP-DEV] stristr() overwrites haystack

2001-09-06 Thread Sterling Hughes
On Thu, 6 Sep 2001, Rasmus Lerdorf wrote: > > Noop... fixed in cvs. > > Good catch Sebastian. We need to keep an eye on this Sterling guy! > Sometimes I wonder if he introduces bugs like this just to see if someone > will catch them. He introduced it about 2 days ago in this patch: > > htt

Re: [PHP-DEV] stristr() overwrites haystack

2001-09-06 Thread Rasmus Lerdorf
> Noop... fixed in cvs. Good catch Sebastian. We need to keep an eye on this Sterling guy! Sometimes I wonder if he introduces bugs like this just to see if someone will catch them. He introduced it about 2 days ago in this patch: http://cvs.php.net/diff.php/php4/ext/standard/string.c?r1=

Re: [PHP-DEV] stristr() overwrites haystack

2001-09-06 Thread Sterling Hughes
On Thu, 6 Sep 2001, Sebastian Bergmann wrote: > $string = 'FOOBAR'; > echo $string . ''; > > if (stristr($string, 'hubu')) { > tubu(); > } > > echo $string; > ?> > > outputs > > FOOBAR > foobar > > This can't be the intended behaviour, can it? > >

[PHP-DEV] stristr() overwrites haystack

2001-09-06 Thread Sebastian Bergmann
'; if (stristr($string, 'hubu')) { tubu(); } echo $string; ?> outputs FOOBAR foobar This can't be the intended behaviour, can it? -- Sebastian Bergmann Measure Traffic & Usability http://sebastian-bergmann.de/