Andreas Goetz wrote:

I'm trying to use theh reflection API but can't seem to start:

$func= new Reflection_Function('counter');

This was changed, manuals haven't caught up yet. This should be $func = new ReflectionFunction('counter');

You can also just use the static method export, if you intend to echo the information onto the screen.


Fatal error: Class 'Reflection_Function' not found in C:\htdocs\reflection.php on line 34

According to
http://sitten-polizei.de/php/reflection_api/docs/language.reflection.class.reflection_function.html
this should already work.

Yeah, this is about the only documentation available so far. It's mostly correct, once you change the class names (i.e. no underscore).


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to