Re: stristr() overwrites haystack

From: Date: Thu, 06 Sep 2001 08:06:00 +0000
Subject: Re: stristr() overwrites haystack
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-65221@lists.php.net to get a copy of this message
On Thu, 6 Sep 2001, Sebastian Bergmann wrote: > <?php > $string = 'FOOBAR'; > echo $string . '<br>'; > > if (stristr($string, 'hubu')) { > tubu(); > } > > echo $string; > ?> > > outputs > > FOOBAR > foobar > > This can't be the intended behaviour, can it? > > Noop... fixed in cvs. -sterling

« previous php.dev (#65221) next »