php4-beta | 200004

[PHP4BETA] RE: [PHP-DEV] strchr() From: Mike Robinson (mgrphp3 <email protected>)
Date: 04/23/00

> 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.

-- 
PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
To unsubscribe, e-mail: php4beta-unsubscribe <email protected>
For additional commands, e-mail: php4beta-help <email protected>
To contact the list administrators, e-mail: php4beta-admin <email protected>