RE: [PHP-DEV] Stop Breaking Our Apps For the Sake of OO

From: Date: Thu, 11 May 2006 15:24:59 +0000
Subject: RE: [PHP-DEV] Stop Breaking Our Apps For the Sake of OO
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-23252@lists.php.net to get a copy of this message
> -----Original Message----- > From: Derick Rethans [mailto:derick@php.net] > Sent: 11 May 2006 15:07 > To: PHP Developers Mailing List > Subject: Re: [PHP-DEV] Stop Breaking Our Apps For the Sake of OO > > 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: > > <snip> > > I've one more of those things. How to test if you're using > PHP 5.1 or PHP 5.2: > > <?php > > class Bla > { > } > > $b = new Bla; > > if( $b != null ) > { > echo "PHP 5.1"; > } > else > { > echo "PHP 5.2"; > } > ?> > Interesting logic break too... $foo = new stdClass(); if ($foo == null || $foo != null) { echo 'Never gets echoed'; } Jared

« previous php.internals (#23252) next »