Re: [PHP4BETA] strchr()

From: Date: Sun, 23 Apr 2000 15:28:50 +0000
Subject: Re: [PHP4BETA] strchr()
Groups: php.dev 
Request: Send a blank email to php-dev+get-18133@lists.php.net to get a copy of this message
On Sun, Apr 23, 2000 at 11:21:26AM +0300, Andi Gutmans wrote: > 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? It should be implemented correctly and the change well documented. If people are currently using it incorrectly, they may be inconvenienced, but I'm sure no one will argue with the speed improvement of a real strchr(). -- Jon Parise (jon@csh.rit.edu) . Rochester Inst. of Technology http://www.csh.rit.edu/~jon/ : Computer Science House Member

« previous php.dev (#18133) next »