Re: ReflectionFile missing

From: Date: Mon, 30 Jan 2012 01:48:21 +0000
Subject: Re: ReflectionFile missing
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-57561@lists.php.net to get a copy of this message
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 <http://ryanmccue.info/>

« previous php.internals (#57561) next »