On Mon, Jan 31, 2011 at 6:45 PM, Ferenc Kovacs <i...@tyrael.hu> wrote:
> On Mon, Jan 31, 2011 at 6:38 PM, Mathias Grimm <mathiasgr...@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