RE: [PHP-DEV] strchr()

From: Date: Sun, 23 Apr 2000 21:55:59 +0000
Subject: RE: [PHP-DEV] strchr()
References: 1  Groups: php.dev php.version4 
Request: Send a blank email to php-version4+get-13954@lists.php.net to get a copy of this message
> 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. FWIW , I agree with this. Using strchr() in place of strstr() can hardly be considered inappropriate, since the docs have indicated an exact alias for quite some time. I can't imagine what sort of logic would be required to realize a performance gain, but if it _is_ necessary, why not implement an entirely new function for single chars, strschr() say. Mike R.

« previous php.version4 (#13954) next »