On Thu, Mar 07, 2002 at 08:02:17PM +0100, [EMAIL PROTECTED] wrote :
> On Thu, 7 Mar 2002, Andrey Hristov wrote:
>
> > You probably do:
> > $some_len = strlen(&$some_str);
>
> right.
>
> > you do not need to use &. Probably $some_str is passed by reference
> > without &.
>
> What do you mean by probably? I mean, the reason for me to use the
> call-by-reference is the performance...
>
> I'm not on php-dev, so please reply to my personal adress ;)
The not obvious thing is that references _are not_ faster. It
is was Andi always has told us and it is what people said who
did testing. Testings were posted to this list a while ago
and performance of references was also discussed in the
german php newsgroup. PHP is not C; references are
not like C pointers; they are not faster.
--
Please always Cc to me when replying to me on the lists.
GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php