Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53426 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31947 invoked from network); 20 Jun 2011 16:39:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jun 2011 16:39:55 -0000 Authentication-Results: pb1.pair.com header.from=jeremy.hahn@makeabyte.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=jeremy.hahn@makeabyte.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain makeabyte.com designates 96.8.113.30 as permitted sender) X-PHP-List-Original-Sender: jeremy.hahn@makeabyte.com X-Host-Fingerprint: 96.8.113.30 unknown Linux 2.6 Received: from [96.8.113.30] ([96.8.113.30:48815] helo=web01.chi.makeabyte.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6E/6C-34681-FB77FFD4 for ; Mon, 20 Jun 2011 12:39:53 -0400 Received: from [192.168.123.160] (173-166-33-101-newengland.hfc.comcastbusiness.net [173.166.33.101]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by web01.chi.makeabyte.com (Postfix) with ESMTPSA id C43AB6E68B11 for ; Mon, 20 Jun 2011 12:38:55 -0400 (EDT) Message-ID: <4DFF77CC.9010807@makeabyte.com> Date: Mon, 20 Jun 2011 12:39:40 -0400 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10 MIME-Version: 1.0 To: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Annotations / Interceptors From: jeremy.hahn@makeabyte.com (Jeremy Hahn) Hi, I am new to the list and just got done doing a search through the archives to try and get an idea on where things stand in regards to annotation support in PHP. Although I did find some interesting debates, I was not really able to conclude one way or the other what the plan is. I've noticed some patches that have been submitted to the rfc wiki which have been declined, and I am seeing a lot of mixed feelings on whether or not PHP 'should' support them. What is the official position on annotations? I for one would really like to see this supported. I have been experimenting with annotations/interceptors in my framework for the last year or so, and I love them. The only problem I have is performance - this needs to be handled in the core. One thing I figured I would mention, is it seems like most people want annotations to be part of the reflection package. While this makes sense in the context of annotations, I think this would prevent annotations from being used as the foundation to interceptors, since a class level interceptor would need to get executed before the intercepted class is instantiated. As I understand reflection to work today, this would not be possible. I'm more than happy to contribute to an extension with those who share similiar feelings.