Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:57561 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27658 invoked from network); 30 Jan 2012 01:48:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Jan 2012 01:48:57 -0000 Authentication-Results: pb1.pair.com header.from=lists@rotorised.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=lists@rotorised.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain rotorised.com from 203.88.115.241 cause and error) X-PHP-List-Original-Sender: lists@rotorised.com X-Host-Fingerprint: 203.88.115.241 ironport1-mx.cbr1.mail-filtering.com.au Received: from [203.88.115.241] ([203.88.115.241:34138] helo=ironport1-mx.cbr1.mail-filtering.com.au) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DD/43-15394-507F52F4 for ; Sun, 29 Jan 2012 20:48:54 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ap8EAL32JU+va78L/2dsb2JhbABEhQuqVIFyAQEFIw8BRRELGAICBRYLAgIJAwIBAgFFEwgBAYgBpwOQaoEvhw4BBAMECQEDDAQDBAsBCAEFCQYDBBcDgnIZBAIKAg0HAVs4AQEVggaBFgSacI0N X-IronPort-AV: E=Sophos;i="4.71,588,1320584400"; d="scan'208";a="576048890" Received: from ju001lcs02.dfw.the-server.net.au (HELO ju001lcs02.dfw.the-server.com.au) ([175.107.191.11]) by ironport1-mta.cbr1.mail-filtering.com.au with ESMTP; 30 Jan 2012 12:48:26 +1100 Received: from [124.191.162.147] (helo=[192.168.0.10]) by ju001lcs02.dfw.the-server.com.au with esmtpa (Exim 4.69) (envelope-from ) id 1RrgM5-002QTn-3p for internals@lists.php.net; Mon, 30 Jan 2012 12:48:25 +1100 Message-ID: <4F25F6E5.3050404@rotorised.com> Date: Mon, 30 Jan 2012 11:48:21 +1000 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: internals@lists.php.net References: <1327883576.6780.722.camel@guybrush> In-Reply-To: <1327883576.6780.722.camel@guybrush> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] ReflectionFile missing From: lists@rotorised.com (Ryan McCue) Johannes Schlüter wrote: > PS. Mind that the example you've given even works on files not included > by parsing files, whereas internal reflection provides information what > actually is available from engine point of view ... The original reason I wrote that class was for a documentation tool, so that we could discover classes before loading the files. When I wrote that code, I was also intending to also write extra classes to eventually replace all of the Reflection APIs with reimplementations, but was beaten to the punch: https://github.com/Andrewsville/PHP-Token-Reflection For some purposes, you need to be able to reflect files and classes without loading them, which I think is a huge gap in the Reflection API. That said, a proper ReflectionFile would be welcome, even if it did load the file. -- Ryan McCue