Re: strchr()

From: Date: Mon, 24 Apr 2000 14:55:06 +0000
Subject: Re: strchr()
References: 1  Groups: php.dev php.version4 
Request: Send a blank email to php-version4+get-13971@lists.php.net to get a copy of this message
OK I don't mind leaving it this way if you think people will get bitten by the current behavior. It probably wouldn't make any noticeable difference. Andi On Sun, 23 Apr 2000, Sterling Hughes wrote: > Andi Gutmans wrote: > > > > Hey, > > > > Write now the PHP function strchr() is aliased to strstr() for some odd > > reason. It could be implemented much faster as strchr() just looks for a > > character within a string and not a string within a string. > > Do you guys think people are using strchr() where strstr() should be used, > > and will they get bitten if its behavior is changed to do "exactly but not > > more" of what it should do? > > > > Andi > > --- > > Andi Gutmans <andi@zend.com> > > http://www.zend.com/ > > Since we have already documented them as being aliases for quite a while > now, it will definitely break a lot of scripts, and considering most of > the people using PHP are on hosting on pretty fast machines, the speed > gain is not, I don't think, worth breaking perfectly good scripts. > > Sterling >

« previous php.version4 (#13971) next »