Re: Are PHP5 features worth it?

From: Date: Wed, 20 Dec 2006 13:29:38 +0000
Subject: Re: Are PHP5 features worth it?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-246069@lists.php.net to get a copy of this message
# jochem@iamjochem.com / 2006-12-20 11:49:25 +0100: > Roman Neuhauser wrote: > > # zorglub_olsen@hotmail.com / 2006-12-19 19:05:23 +0100: > >> What major compelling reasons do I have to start using exceptions and OOP-5? > > > > All the things you mentioned, and then some. > > > > Someone else mentioned that PHP 5 is much less inclined to copy objects. > > it's not inclined to copy at all - you always get a reference to the existing > object. Well, that's been my observation so far... but PHP has no specification, and I don't really know I've hit all the little corners of the self-defining implementation. > > You still don't get the convenience of a private copy constructor, but > > hey. > > maybe I misunderstand you but isn't this what you mean by 'private copy ctor'?: > > http://php.net/manual/en/language.oop5.cloning.php Yes, that's (almost exactly) what I meant. I dunno why I thought __clone() couldn't be made private, perpahs it didn't work in 5.0.x when I played with the new features? Sorry for the FUD in any case. -- How many Vietnam vets does it take to screw in a light bulb? You don't know, man. You don't KNOW. Cause you weren't THERE. http://bash.org/?255991

« previous php.general (#246069) next »