Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66710 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25295 invoked from network); 19 Mar 2013 21:43:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Mar 2013 21:43:43 -0000 Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 209.85.214.181 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 209.85.214.181 mail-ob0-f181.google.com Received: from [209.85.214.181] ([209.85.214.181:57248] helo=mail-ob0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A6/D2-07534-E0CD8415 for ; Tue, 19 Mar 2013 16:43:43 -0500 Received: by mail-ob0-f181.google.com with SMTP id ni5so977024obc.26 for ; Tue, 19 Mar 2013 14:43:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding:x-gm-message-state; bh=pXs1bwf75vG4L8nJHL+5WG0974Gl0cn1ID0GI+lhfwc=; b=JPVNAOO6vGBpiKDma1EjmGYp41XQhWbIek/RABQOF/lzj7KWc/9OjsTSBVIGExPMiD h7LSDDFgeaYx+8iHa9qtMeDE6ut/D/md0MrfDr+OMWlyPVtYfdh3EtA0HYhYajBMg1ru Qbsfv3/pqTw8PeBrURraRk9E7LST3DY5lZsLRAgJvINubP/hDADyU+l86MYgxhvjaSfH hcPWtVKJxTn1zZxKoW3Cu9/7NeX7s2Ux4EXOfLpzkvdF6XOsOfuhGRC5s+GXq2R+8VOe 3/gGiQ/SSkDQHQQRhsukloWu/ZX4DJKR0dVygyUvECc1b7UjdnNJ3HbrCrA5AJM7VZME vVOg== X-Received: by 10.60.12.137 with SMTP id y9mr2511577oeb.88.1363729420260; Tue, 19 Mar 2013 14:43:40 -0700 (PDT) Received: from [192.168.200.148] (c-50-131-44-225.hsd1.ca.comcast.net. [50.131.44.225]) by mx.google.com with ESMTPS id ri1sm13390632obc.12.2013.03.19.14.43.38 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 19 Mar 2013 14:43:39 -0700 (PDT) Message-ID: <5148DC09.1000507@lerdorf.com> Date: Tue, 19 Mar 2013 14:43:37 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130308 Thunderbird/17.0.4 MIME-Version: 1.0 To: =?UTF-8?B?TWF0xKtzcyBSb2JlcnRzIFRyZWluaXM=?= CC: =?UTF-8?B?Sm9oYW5uZXMgU2NobMO8dGVy?= , PHP Development References: <5f39c9e5-14c7-4403-ab95-bd898b748e6a@email.android.com> In-Reply-To: X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Gm-Message-State: ALoCoQlQevXMp0wuDV5d5BTmxxCbLORMLkX+cePvqC9XTTpm/frO8EVp4QiSbQAgigbn6wYi64c3 Subject: Re: [PHP-DEV] Proposal: new magic methods for Object references. From: rasmus@lerdorf.com (Rasmus Lerdorf) On 03/19/2013 02:19 PM, Matīss Roberts Treinis wrote: > However, as far as I understand, variables can currently hold values like > arrays, strings, etc, and object references. Could it be possible to add > one more possible value to this keen little list Not without massive changes across the codebase, no. Everything touches the zval. Changing it has far-reaching consequences. > Also, a little overhead is reasonable for the new functionality. It is not > like we have Pentium 2's in our DC's anymore. It would have to be a critical feature that pretty much everyone would use all the time to justify slowing down every variable assignment. We need proposals for speeding things up by dropping rarely used features, not proposals for slowing things down with rarely used features. -Rasmus