Discussion: pointers vs. objects
Afficher un message
Vieux 20/06/2008, 20h42   #7
Rik Wasmus
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: pointers vs. objects

On Fri, 20 Jun 2008 19:14:10 +0200, Michael Fesser <netizen@gmx.de> wrote:

> .oO(Rik Wasmus)
>
>> Jeff wrote:
>>
>>> That makes sense. Is that the only thing passed by reference?

>>
>> - Objects are passed by reference by default.

>
> It should be mentioned and kept in mind that these are _not_ the same
> references as created with an explicit '&', but internal object handles.
> '=' and '=&' are still two different things, even when working with
> objects in PHP 5.
>
> See example #6 (Object Assignment) on
>
> http://de2.php.net/manual/en/language.oop5.basic.php
>
> for a short demonstration of the differences.


Yup, that's why I asked why he needed it for.

> PS: Anyone else having problems with <http://www.php.net> currently?
> Ping and traceroute work from here, but the web server doesn't want to
> talk with me ...


That's been the case for me for months, the server being either very slow
or not responsive at all, although it just seemed to get better the last
few days. I've just grown accustomed to using nl2. or nl3.
--
Rik Wasmus
....spamrun finished
  Réponse avec citation
 
Page generated in 0,05642 seconds with 9 queries