Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:5753 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55100 invoked by uid 1010); 27 Nov 2003 11:53:21 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 55036 invoked from network); 27 Nov 2003 11:53:21 -0000 Received: from unknown (HELO mx.thebrainroom.net) (65.200.24.98) by pb1.pair.com with SMTP; 27 Nov 2003 11:53:21 -0000 Received: by mx.thebrainroom.net (Postfix, from userid 517) id 452581488089; Thu, 27 Nov 2003 03:52:51 -0800 (PST) Received: from obsidian (zaneeb.thebrainroom.net [82.133.1.138]) by mx.thebrainroom.net (Postfix) with ESMTP id A42581488087; Thu, 27 Nov 2003 03:52:48 -0800 (PST) Message-ID: <00fb01c3b4dc$ef50a370$8802a8c0@obsidian> To: "Christian Schneider" , "Derick Rethans" Cc: "Marcus Boerger" , "Andi Gutmans" , References: <5.1.0.14.2.20031126172833.06829bb8@127.0.0.1> <5.1.0.14.2.20031126172833.06829bb8@127.0.0.1> <5.1.0.14.2.20031127123209.02a61918@127.0.0.1> <3FC5D71A.3010404@cschneid.com> <33409013843.20031127121202@marcus-boerger.de> <3FC5E06B.7020200@cschneid.com> <3FC5E44C.4050502@cschneid.com> Date: Thu, 27 Nov 2003 11:52:26 -0000 Organization: The Brain Room Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Spam-Status: No, hits=-0.7 required=5.0 tests=AWL,BAYES_30,REFERENCES version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) X-TBR-Filter: Virus scanned and defanged Subject: Re: [PHP-DEV] Re: Compatibility problems with PHP 5 From: wez@thebrainroom.com ("Wez Furlong") 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.