Re: implicit reference

From: Date: Mon, 31 Jan 2011 20:08:09 +0000
Subject: Re: implicit reference
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-51400@lists.php.net to get a copy of this message
the constraint is that all need to run on php4.3.6 and 5.3 I have one function called my_clone($obj) {} , if is php5 it is serialized and deserialized (to clone member recursively), if php4 just return the parameter. In first moment Im migrating all assignments to use my_clone and later manual update each one. im ignoring some obvious assignments like strings, concatenation, constants and so on. The system have about 3 million of php 4.3.6 lines, no way to manual migrating. By now im mixing ER + token_get_all but is like build a parser... On Mon, Jan 31, 2011 at 5:53 PM, Pierre Joye <pierre.php@gmail.com> wrote: > hi, > > On Mon, Jan 31, 2011 at 6:38 PM, Mathias Grimm <mathiasgrimm@gmail.com> > wrote: > > > I dont want refereces.. except in explicit cases and i need to use php > 5.3 > > References have been abused in all possible and impossible ways. > > What are the exact cases where you need to do it? Maybe it is already > treated as reference anyway (like obj as argument for a > function/method). > > Cheers, > -- > Pierre > > @pierrejoye | http://blog.thepimp.net | > http://www.libgd.org >

« previous php.internals (#51400) next »