Re: implicit reference

From: Date: Mon, 31 Jan 2011 17:47:16 +0000
Subject: Re: implicit reference
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-51391@lists.php.net to get a copy of this message
On Mon, Jan 31, 2011 at 6:45 PM, Ferenc Kovacs <info@tyrael.hu> wrote: > On Mon, Jan 31, 2011 at 6:38 PM, Mathias Grimm <mathiasgrimm@gmail.com>wrote: > >> I am migrating a huge php 4 system to php 5.3. >> >> I need something like a op override for the = operator. >> >> I'm working on a script with lots of ER + token_get_all but its also a >> hard >> work. >> >> Any suggestion ? >> >> I dont want refereces.. except in explicit cases and i need to use php 5.3 >> > > hi > > it would be a better to migrate the project to using cloning where > neccessary > http://php.net/manual/en/language.oop5.cloning.php > > but until that, you can use some hack like > http://pecl.php.net/package/operator (don't know if it > works with 5.3) > > Tyrael > > and for the record, we had a config to turn back that behavior in php5, but that was removed with 5.3: http://www.php.net/manual/en/ini.core.php#ini.zend.ze1-compatibility-mode Tyrael

« previous php.internals (#51391) next »