Date: 04/23/00
- Next message: thies <email protected>: "[PHP-DEV] Re: [PHP4BETA] strchr()"
- Previous message: Jon Parise: "[PHP-DEV] Re: [PHP4BETA] strchr()"
- In reply to: Andi Gutmans: "[PHP-DEV] strchr()"
- Next in thread: Mike Robinson: "RE: [PHP-DEV] strchr()"
- Reply: Mike Robinson: "RE: [PHP-DEV] strchr()"
- Reply: Andi Gutmans: "Re: [PHP-DEV] strchr()"
- Reply: Joey: "[PHP-DEV] Re: [PHP4BETA] Re: [PHP-DEV] strchr()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 <email protected>>
> 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
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: thies <email protected>: "[PHP-DEV] Re: [PHP4BETA] strchr()"
- Previous message: Jon Parise: "[PHP-DEV] Re: [PHP4BETA] strchr()"
- In reply to: Andi Gutmans: "[PHP-DEV] strchr()"
- Next in thread: Mike Robinson: "RE: [PHP-DEV] strchr()"
- Reply: Mike Robinson: "RE: [PHP-DEV] strchr()"
- Reply: Andi Gutmans: "Re: [PHP-DEV] strchr()"
- Reply: Joey: "[PHP-DEV] Re: [PHP4BETA] Re: [PHP-DEV] strchr()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

