Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:47633 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20621 invoked from network); 26 Mar 2010 00:21:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Mar 2010 00:21:12 -0000 Authentication-Results: pb1.pair.com header.from=ionut.g.stan@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=ionut.g.stan@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.216 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: ionut.g.stan@gmail.com X-Host-Fingerprint: 209.85.218.216 mail-bw0-f216.google.com Received: from [209.85.218.216] ([209.85.218.216:51739] helo=mail-bw0-f216.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 58/45-25388-6FDFBAB4 for ; Thu, 25 Mar 2010 19:21:11 -0500 Received: by bwz8 with SMTP id 8so2647602bwz.23 for ; Thu, 25 Mar 2010 17:21:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=UK9+rzFoMldydLWfdmxwfZhLwXTblkD6b6Erh9Cz7nE=; b=hYPbC4pL/hystCCOaEmCRD2UUaTN/TKnZBDviTP9LisUC/deBpGLbwEdkD+Ndshxem tzia0lvcKyFYXQb/wC40fNUxPkNBlNMX28XbPKqCzEQ1u/BCdEEaHEYLxp5AJ4HDOSV/ DvlVYuxaiAykzSUiOSQy/IgxGszM5e5jGcYlw= 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:content-transfer-encoding; b=DlfAnWrj4tkNkqvJlqbPM4JsNugDdUCkiB25nXS9H5XORKcyfTQ3x5/omDAzAAhZjf KZv04FN07FTK1pmcrb74Q55g5LSdXMTVv8GqdTyFOwQSrDY7jUVNQNAnbYH2pJtKiavt hDOppTNjciQQeyCz+xfdUdmX8ImJ5MJGAeopE= MIME-Version: 1.0 Received: by 10.204.154.75 with HTTP; Thu, 25 Mar 2010 17:21:07 -0700 (PDT) In-Reply-To: <4BABF675.4010006@zend.com> References: <4BA0DF61.1010907@easyflirt.com> <4BA1DB19.1080608@easyflirt.com> <660eb66f1003180224g5662ba1dtb123c3ee88a3a3e5@mail.gmail.com> <4BA25919.8090805@easyflirt.com> <4BA37E11.9080403@gmail.com> <4BA7C9CF.1000008@zend.com> <4BABF123.4050102@gmail.com> <4BABF675.4010006@zend.com> Date: Fri, 26 Mar 2010 02:21:07 +0200 Received: by 10.204.129.88 with SMTP id n24mr35946bks.208.1269562867215; Thu, 25 Mar 2010 17:21:07 -0700 (PDT) Message-ID: To: Stanislav Malyshev Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Assign array with __get From: ionut.g.stan@gmail.com (Ionut Gabriel Stan) I guess you're gonna hate this :) So what you're saying is that it is *consistent* with regard to the implementation of methods/functions, i.e. __get behaves as an ordinary method. On Fri, Mar 26, 2010 at 1:49 AM, Stanislav Malyshev wrote: > Hi! > >> So, what's the reasoning behind this design decision? Why is it supposed >> to work like this and not the other way around? > > Because when you return something by-value you can not have effects of it= s > modification reflect on the original value. That's how by-value works. Wh= en > you have by-ref return you can modify it and have the original value chan= ge. > More here: http://php.net/references > -- > Stanislav Malyshev, Zend Software Architect > stas@zend.com =C2=A0 http://www.zend.com/ > (408)253-8829 =C2=A0 MSN: stas@zend.com > --=20 Ionut G. Stan I'm under construction | http://blog.igstan.ro/