Re: $ref =& $this;

From: Date: Mon, 03 Oct 2005 14:21:08 +0000
Subject: Re: $ref =& $this;
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-19345@lists.php.net to get a copy of this message
On 10/3/05, Marcus Boerger <helly@php.net> wrote: > Hello Dmitry, > > that IS NOT proper code and it wasn't in php 4 either, it was only a > workaround that is no longer needed. Had the php 4 design been correct in > the first place that wouldn't have been allowed in 4 either. Since BC is not > working out anyway i see absolutley no reason to encourage people to > continue to missuse php. > > marcus The central issue I see in this regards is that up until this point, people had the option of writing reasonably complex OO code which worked on both PHP4 and PHP5. With the advent of disallowing =& $this; you are explicitly forcing people to create PHP5 branches of their code. I believe this will also act as a further deterant for hosts to migrate to PHP5, as there will be an even greater number of off the shelf PHP applications which are no longer compatable with PHP5. Regards, Jason http://blog.casey-sweat.us/

« previous php.internals (#19345) next »