Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61970 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47177 invoked from network); 2 Aug 2012 16:44:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Aug 2012 16:44:09 -0000 Authentication-Results: pb1.pair.com header.from=g.b.yahav@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=g.b.yahav@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.170 as permitted sender) X-PHP-List-Original-Sender: g.b.yahav@gmail.com X-Host-Fingerprint: 209.85.220.170 mail-vc0-f170.google.com Received: from [209.85.220.170] ([209.85.220.170:59082] helo=mail-vc0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 78/0B-21438-75EAA105 for ; Thu, 02 Aug 2012 12:44:08 -0400 Received: by vcbgb30 with SMTP id gb30so9519723vcb.29 for ; Thu, 02 Aug 2012 09:44:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=hOkGXT0SK0DMHJPP4isQK2RDpoXkGkSPPy6hza3KYCw=; b=WB7IvOwNM4tCHgKfcA6ULXbCsd5/uGhbtspEsHX1ydJU9PymWSnNDhY7p9UHRUtleA VH1j9KyBwCMprsJZmVcqmHrjKpJw6UXWYmBD232zP+Qrq33exEDneDfgZKZeSn1++V8g jIoQhy5UrWLkvkK4iE7ZvJnfwmbVF+8aU57Yst4z7x+NaAYFEZatQg3jG3qvoBRsjMUe RAdk4pHpdaEGdlDRiFaEzGfsfVBiyS49MloGWzWMMO9uo5MsBy2eVedu5ivMz7555MVd X5xbDrlzFg5H9M3zAS40E/zJiPwTuKRYrmLU3tPsUGYfAVsmqU4HKUoEc08Rxtco957K Jncg== Received: by 10.58.221.8 with SMTP id qa8mr9846569vec.23.1343925844471; Thu, 02 Aug 2012 09:44:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.92.18 with HTTP; Thu, 2 Aug 2012 09:43:44 -0700 (PDT) Date: Thu, 2 Aug 2012 19:43:44 +0300 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary=047d7bf0dd46906fcb04c64b1e97 Subject: Add runkit to PHP Runtime From: g.b.yahav@gmail.com (Yahav Gindi Bar) --047d7bf0dd46906fcb04c64b1e97 Content-Type: text/plain; charset=ISO-8859-1 Hi, I don't know how to tag this kind of discussion (because it's not RFC request). I've interested in runkit PECL extension and think that it should be part of the PHP core runtime. I do think that the implementation should be different and don't mind to suggest my implementation as RFC, but firstly I wish to know if you think that the core idea to be able to add extension methods to classes is good idea, so I won't start to implement a new feature without a reason (I'd start it but since I've saw runkit I think that we can discuss the idea first). I think that a code similier to this will be great: class Foo { public function foo() { } } class Bar extensionfor Foo { public function bar() { } } (new Foo())->bar(); // execute Bar method I see many pros about this feature, and you can see it in C# and ObjC too. Shall I open for it a wiki page and start RFC discussion? What do you think? --047d7bf0dd46906fcb04c64b1e97--