Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:23261 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31134 invoked by uid 1010); 11 May 2006 18:38:17 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 31119 invoked from network); 11 May 2006 18:38:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 May 2006 18:38:17 -0000 X-PHP-List-Original-Sender: helly@php.net X-Host-Fingerprint: 81.169.182.136 ajaxatwork.net Linux 2.4/2.6 Received: from ([81.169.182.136:42505] helo=strato.aixcept.de) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id DF/A9-19568-79483644 for ; Thu, 11 May 2006 14:38:16 -0400 Received: from baumbart.mbo (dslb-084-063-015-157.pools.arcor-ip.net [84.63.15.157]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by strato.aixcept.de (Postfix) with ESMTP id EA8EA35C1DC; Thu, 11 May 2006 20:38:12 +0200 (CEST) Date: Thu, 11 May 2006 20:38:22 +0200 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <952883150.20060511203822@marcus-boerger.de> To: PHP Developers Mailing List Cc: Derick Rethans In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Stop Breaking Our Apps For the Sake of OO From: helly@php.net (Marcus Boerger) Hello guys, sorry but i worked >12 hours on patch that brought half of the todo list for 5.2 because all that stuff is unluckily interlinked.....and guess i can make changes in a dev tree as well as there might be errors in head and i even more might copy errors from head to the dev tree....too bad but why not write a simple test case which i can care for? Thursday, May 11, 2006, 4:07:01 PM, you wrote: > On Thu, 11 May 2006, Derick Rethans wrote: >> While I welcome new developments in either procedural or OO interfaces >> in PHP I do not agree with breaking BC (between 5.1 and 5.2 in this >> case) just for the sake of OO purity. In this example there is the >> following class: > > I've one more of those things. How to test if you're using PHP 5.1 or > PHP 5.2: > class Bla > { > } > $b = new Bla; > if( $b != null ) > { > echo "PHP 5.1"; > } > else > { > echo "PHP 5.2"; > } ?>> > regards, > Derick > -- > Derick Rethans > http://derickrethans.nl | http://ez.no | http://xdebug.org Best regards, Marcus