Re: Re: Bug #15937: Call-time pass-by-reference has been deprecated
| From: | Markus Fischer | Date: | Thu, 07 Mar 2002 19:23:46 +0000 |
| Subject: | Re: Re: Bug #15937: Call-time pass-by-reference has been deprecated | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-80884@lists.php.net to get a copy of this message | ||
On Thu, Mar 07, 2002 at 08:02:17PM +0100, s.nohn@nettrade.de 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