Re: Re: Compatibility problems with PHP 5

From: Date: Thu, 27 Nov 2003 11:52:26 +0000
Subject: Re: Re: Compatibility problems with PHP 5
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-5753@lists.php.net to get a copy of this message
Hey Christian, Why not add your own clone() function to your apps; something like this: if (version_compare(phpversion(), "5.0", "<")) { function clone($object) { return $object; } } else { function clone($object) { return $object->__clone(); } } then (re)write all your code to call clone() where you need it. [I know that this is what you want to have in php 4 and php 5 right now anyway; but its only a couple of lines of code to add to your project] --Wez.

« previous php.internals (#5753) next »