[pLog-svn] Serious bug in 1.2.4 add comment!

Oscar Renalias oscar at renalias.net
Thu Jul 19 16:43:59 EDT 2007


On 19 Jul 2007, at 23:19, Jon Daley wrote:

> On Thu, 19 Jul 2007, Oscar Renalias wrote:
>> I think the automatic reference vs. copy is a good thing, and that's
>> how other languages work (i.e. Java)
>  	Yeah, I never liked it there either.  The problem comes in when
> you are trying to clone an object that has a reference inside it to  
> some
> other object - and will the clone end up with a copy of the  
> reference, or
> will it clone the sub-object also.

Yes, that can be a problem. But that's why PHP5 has the __clone()  
magic function and the concept of "copy constructors" exist for Java.

>> I don't think there's many more problems like this one, or else we
>> would have already noticed them. I have been myself running PHP5 for
>> a while and never noticed anything unusual... In any case, as Mark
>> said, we'll be going through these things soon.
>  	When you say "yourself", what do you mean?  Not renalias.net or
> lifetype.net, is it?

I have been developing with PHP5 in my laptop since the beginning of  
the year or so, but now that I think of it, I was somehow also sure  
that your servers are running PHP5. They're not? :-)

If not, can we do something about it?


More information about the pLog-svn mailing list