reflection API bug or change?

From: Date: Mon, 22 Dec 2003 15:05:53 +0000
Subject: reflection API bug or change?
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-6680@lists.php.net to get a copy of this message
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

« previous php.internals (#6680) next »