Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89034 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65219 invoked from network); 2 Nov 2015 09:53:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Nov 2015 09:53:28 -0000 Authentication-Results: pb1.pair.com header.from=tanuck@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tanuck@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.48 as permitted sender) X-PHP-List-Original-Sender: tanuck@gmail.com X-Host-Fingerprint: 74.125.82.48 mail-wm0-f48.google.com Received: from [74.125.82.48] ([74.125.82.48:33499] helo=mail-wm0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7B/A2-42726-89237365 for ; Mon, 02 Nov 2015 04:53:28 -0500 Received: by wmeg8 with SMTP id g8so54103183wme.0 for ; Mon, 02 Nov 2015 01:53:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=Gw/KrrTn9o7kxCyL9CsCifWU3tC+L2zBFvPD9/UEGwE=; b=Gu8VZlY2coJlGIP/1td8FHcRjDauaGuAZ53SO5U0flaU8JQr/q6k7DTGx/gE7SCyg1 2ergbypRmN12wqv52c7nOYx1bUr7OHjyMBukC6CVPu7cUu4M0vINbj/8a0At+yzluTIU uqik5Ae3HrESG2ylbG4ewKYsRsJMDnXVkXomnaYkbUfERL6ALILbBW8tpYnQu/phSpw6 0ARZx5MyVskA1qm+53KoQlv0fuIdiVIVH22kEyATwfSjkzlPNf1TnXd3yuyLNFw7y1Cc Hl1YZDQp1ww/7iIhb7LM14Kr/Pnhat+G/tvqJYBBmK+p0+WSUfNRq6jlKnDJYpsculnV t2gg== X-Received: by 10.28.136.15 with SMTP id k15mr11536115wmd.51.1446458004810; Mon, 02 Nov 2015 01:53:24 -0800 (PST) Received: from [192.168.1.4] ([185.38.246.3]) by smtp.gmail.com with ESMTPSA id uj4sm21355988wjc.34.2015.11.02.01.53.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 02 Nov 2015 01:53:24 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.0 \(3094\)) In-Reply-To: Date: Mon, 2 Nov 2015 09:53:22 +0000 Content-Transfer-Encoding: quoted-printable Message-ID: <7AA3814E-A72E-4525-897B-84AEA28F14B7@gmail.com> References: To: internals@lists.php.net X-Mailer: Apple Mail (2.3094) Subject: Re: [PHP-DEV] Friend class/function From: tanuck@gmail.com (James Tancock) Hi Georges, I quite like this idea. Although I struggle to see many use cases. The = only one I=E2=80=99ve thought of in the past is the ability to = =E2=80=98befriend=E2=80=99 the test case for your class. So you don=E2=80=99= t have to extend the class in your tests if you want access to = non-public class members. This is purely a dev use-case, so I question it=E2=80=99s worth. But = i=E2=80=99d be interested to hear any other use-case suggestions. Regards, James Tancock=