Re: [PHP4BETA] Re: [PHP-DEV] strchr()
| From: | Joey | Date: | Mon, 24 Apr 2000 21:41:58 +0000 |
| Subject: | Re: [PHP4BETA] Re: [PHP-DEV] strchr() | ||
| References: | 1 | Groups: | php.dev php.version4 |
| Request: | Send a blank email to php-dev+get-18162@lists.php.net to get a copy of this message | ||
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@zend.com>
> > 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@lists.php.net
> For additional commands, e-mail: php4beta-help@lists.php.net
> To contact the list administrators, e-mail: php4beta-admin@lists.php.net
>
>