Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85908 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82756 invoked from network); 23 Apr 2015 04:08:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Apr 2015 04:08:46 -0000 Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 198.187.29.252 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 198.187.29.252 imap10-4.ox.privateemail.com Received: from [198.187.29.252] ([198.187.29.252:46762] helo=imap10-4.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A1/F5-35080-C4078355 for ; Thu, 23 Apr 2015 00:08:45 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id E4C5A2400E5; Thu, 23 Apr 2015 00:08:40 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at imap10.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap10.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id edZKpjOQ9C4J; Thu, 23 Apr 2015 00:08:40 -0400 (EDT) Received: from oa-res-24-87.wireless.abdn.ac.uk (oa-res-24-87.wireless.abdn.ac.uk [137.50.24.87]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id 241392400C7; Thu, 23 Apr 2015 00:08:39 -0400 (EDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) In-Reply-To: Date: Thu, 23 Apr 2015 05:08:34 +0100 Cc: Stanislav Malyshev , PHP Internals Content-Transfer-Encoding: quoted-printable Message-ID: <2C35DB51-2935-4776-8D10-1C840F9B6C14@ajf.me> References: <55342A50.9030100@gmail.com> To: Julien Pauli X-Mailer: Apple Mail (2.2098) Subject: Re: [PHP-DEV] Closure::call() to access private data, really ? From: ajf@ajf.me (Andrea Faulds) Hey Julien, > On 22 Apr 2015, at 13:18, Julien Pauli wrote: >=20 > Perhaps the best thing to do is to forbid rebinding a Closure to an = internal class ? >=20 > I'm sure we could find segfaulting behaviors using such a trick on = most of our internals classes, aka mysqli, simplexmlelement, PDO or SPL = classes. >=20 > Thoughts ? Sounds good to me! There=E2=80=99s already a precedent for having = internal classes special with respect to Closure binding, as you can=E2=80= =99t bind a method of an internal class to an object not of that class. Thanks. -- Andrea Faulds http://ajf.me/