Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51400 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87885 invoked from network); 31 Jan 2011 20:08:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Jan 2011 20:08:14 -0000 Authentication-Results: pb1.pair.com smtp.mail=mathiasgrimm@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=mathiasgrimm@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: mathiasgrimm@gmail.com X-Host-Fingerprint: 209.85.212.42 mail-vw0-f42.google.com Received: from [209.85.212.42] ([209.85.212.42:51538] helo=mail-vw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 93/D1-13480-DA6174D4 for ; Mon, 31 Jan 2011 15:08:14 -0500 Received: by vws11 with SMTP id 11so2062686vws.29 for ; Mon, 31 Jan 2011 12:08:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=jH7MkFcLtO3x/F72YUgsGCsxm+HSj1gHys1vr5b2Bpc=; b=kwfGzmeH4rZzSF587EawETe9DPaVQJ06aTvhaWlP4fJkuThnk39LdMJZw244/HfnTb 2AwGEbo5hI0dBIF2zZmay3/sha6+h5RWfdMyjv84WdDjsvflV51veIDXmuyzFOfS16qK Hz8Ln36KDjbjYJ7ow4gXBbUQf5BmrvEEIZiyc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=NAZdpreQ3dygJJ2iIrR+o89CDbBxqTDkMo2mgbf1Dnx+UdffaL/T2IxzWDSoTg34Oe zHoOzfPjIe3Df3DeeubolIJewZi9TmFbKo3azwgFKxCW+gvRTNedv2VvGaCS3QrcjFZ2 4gKibeY8UEFUDy2NQxceejPDZfI/ZHoBqFaBw= MIME-Version: 1.0 Received: by 10.229.216.143 with SMTP id hi15mr4394109qcb.27.1296504490186; Mon, 31 Jan 2011 12:08:10 -0800 (PST) Received: by 10.220.164.140 with HTTP; Mon, 31 Jan 2011 12:08:09 -0800 (PST) In-Reply-To: References: Date: Mon, 31 Jan 2011 18:08:09 -0200 Message-ID: To: Pierre Joye Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=00163628412e9658c1049b29f9be Subject: Re: [PHP-DEV] implicit reference From: mathiasgrimm@gmail.com (Mathias Grimm) --00163628412e9658c1049b29f9be Content-Type: text/plain; charset=ISO-8859-1 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 wrote: > hi, > > On Mon, Jan 31, 2011 at 6:38 PM, Mathias Grimm > 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 > --00163628412e9658c1049b29f9be--