Hi -
We're using the Reflection API in a project for which I'm lead developer.
Seems to be something changed between beta-2 and beta-3. We're now
getting the following exception when calling getClass() on a class hint:
exception 'reflection_exception' with message 'Class FileSet does not
exist' in C:\sandbox\phing\classes\phing\IntrospectionHelper.php:244
The class does exist -- i.e. if I dump get_declared_classes() right before
the error line I do indeed see FileSet (well, 'fileset', of course).
The code that triggers this reflection_exception looks like this:
if (($hint = $params[0]->getClass()) === null ) {
throw new
BuildException($method->getDeclaringClass()->getName()."::".$method->getName()."()
method MUST use a class hint to indicate the class type of parameter.");
}
Has something changed? The Reflection_Parameter class looks the same
(API-wise), but I don't know if I'm doing something wrong here or of this
is a legitimate bug.
Thanks,
Hans
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php