Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36488 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15743 invoked from network); 25 Mar 2008 11:42:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Mar 2008 11:42:38 -0000 Authentication-Results: pb1.pair.com smtp.mail=felipensp@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=felipensp@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 66.249.82.228 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: felipensp@gmail.com X-Host-Fingerprint: 66.249.82.228 wx-out-0506.google.com Received: from [66.249.82.228] ([66.249.82.228:58776] helo=wx-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B2/64-27660-E25E8E74 for ; Tue, 25 Mar 2008 06:42:38 -0500 Received: by wx-out-0506.google.com with SMTP id s14so3556801wxc.26 for ; Tue, 25 Mar 2008 04:42:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=3Un3tDEyiHqEKH9ZiwTpVs+1nJCuHVEKcYFLIr5ReCQ=; b=ueZBInc+uklUAwSiAY1iaYVDgvPF6ZUHUsGkO/ZvaIs6lAiD5zT1YP3eqo9jeb1yfnlLlahLTS72/bQIAQW1MLUsTcT2WX1TiRg7NmyjxljxiqEIozDrH+NX0xx1UMoHL+neBx5HA+HpMNRjI3k3sO8YT44mdbLcRNNRaxC+gWI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=bX8bHQEkXM9h/7/qhlmAY1ZTs33NUa6GmY4juZ+fT3omCP+sEXI+wRCqhZWm1GFRmZgiU2NVxmRp/VZaGw8og04YLc82slfhMu+t+JDM0fF0aplZMox1wb7+rJJqnKTPzRfz+P/05O9Cjn2vGDLfdr679NFEfWxBgwy3Ukx5Gf0= Received: by 10.100.144.11 with SMTP id r11mr21415103and.75.1206445355874; Tue, 25 Mar 2008 04:42:35 -0700 (PDT) Received: from ?10.0.18.8? ( [157.86.206.62]) by mx.google.com with ESMTPS id 8sm1366433hsp.4.2008.03.25.04.42.31 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 25 Mar 2008 04:42:33 -0700 (PDT) To: Lars Strojny Cc: Robin Fernandes , internals In-Reply-To: <1206444907.11368.4.camel@localhost> References: <5a8807d10802050343r43742844we89366ec47b57f4b@mail.gmail.com> <46ccd1ab0803241816k413c7605p2c3fb9139afd8536@mail.gmail.com> <5a8807d10803250404o6fd33662wbbf3ff14d296cb2a@mail.gmail.com> <1206444907.11368.4.camel@localhost> Content-Type: text/plain; charset=utf-8 Date: Tue, 25 Mar 2008 08:42:27 -0300 Message-ID: <1206445347.5400.1.camel@felipe> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] Inconsistencies when accessing protected members From: felipensp@gmail.com (Felipe Pena) Em Ter, 2008-03-25 às 12:35 +0100, Lars Strojny escreveu: > Would that mean that the following code does not work anymore? > > class Foo > { > protected function method() > { > } > > public function doSomething(Foo $foo) > { > $foo->method(); > } > } > > $foo1 = new Foo(); > $foo1->doSomething(new Foo()); > This still will works.