Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89739 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50140 invoked from network); 8 Dec 2015 11:17:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Dec 2015 11:17:27 -0000 Authentication-Results: pb1.pair.com smtp.mail=flaupretre@free.fr; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain free.fr from 212.27.42.2 cause and error) X-PHP-List-Original-Sender: flaupretre@free.fr X-Host-Fingerprint: 212.27.42.2 smtp2-g21.free.fr Received: from [212.27.42.2] ([212.27.42.2:15792] helo=smtp2-g21.free.fr) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E3/96-31749-64CB6665 for ; Tue, 08 Dec 2015 06:17:26 -0500 Received: from zimbra71-e12.priv.proxad.net (unknown [172.20.243.221]) by smtp2-g21.free.fr (Postfix) with ESMTP id DA1174B00D7; Tue, 8 Dec 2015 12:16:19 +0100 (CET) Date: Tue, 8 Dec 2015 12:17:23 +0100 (CET) To: Dustin Wheeler Cc: internals@lists.php.net Message-ID: <1847492396.466456204.1449573443077.JavaMail.root@zimbra71-e12.priv.proxad.net> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [217.108.162.120] X-Mailer: Zimbra 7.2.0-GA2598 (ZimbraWebClient - FF3.0 (Win)/7.2.0-GA2598) X-Authenticated-User: flaupretre@free.fr Subject: Re: [PHP-DEV] Class Friendship in PHP From: xn--franois References: Hi, ----- Mail original ----- > De: "Dustin Wheeler" > friendship protect the original class from unwarranted access. The > common > expression of these properties is something like: "Just because I > grant you > friendship access to me doesn=E2=80=99t automatically grant your kids acc= ess > to me, > doesn=E2=80=99t automatically grant your friends access to me, and doesn= =E2=80=99t > automatically grant me access to you." In essense, it is actually a > very-safe feature and while it can be abused, surely, I wouldn't go > as far > to call it very dangerous. I have seen some pretty heinous usage of > traits, > but I won't condemn the feature as dangerous! :) For inheritance rules, you may be interested by a small article I wrote on = the subject (http://tekwire.net/joomla/projects/ideas/php-friend). Regards Fran=C3=A7ois