[PHP-DEV] Re: [PHP4BETA] Re: [PHP-DEV] strchr() From: Joey (joey <email protected>)
Date: 04/24/00

Personally, I think doing it the "right" way would be more important than
backwards compatibility. I say +1 for changing to a true strchr().

        --Joey Smith

Please forgive the long sig:

*** Notice To Bulk Emailers: Attention! Pursuant to US Code, Title 47,
Chapter 5, Subchapter II, 227, any & all unsolicited commercial e-mail
sent to this address is subject to a download and archival fee in the
amount of the $1500 US and copies will be forwarded to domain
administrators. Emailing denotes acceptance of said terms!

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

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