ID: 26456 Updated by: [EMAIL PROTECTED] Reported By: schlueter at phpbar dot de -Status: Open +Status: Feedback Bug Type: Zend Engine 2 problem Operating System: Gentoo Linux PHP Version: 5.0.0b2 (beta2) New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip ..and show exactly HOW you run it when it doesn't work, Previous Comments: ------------------------------------------------------------------------ [2003-11-28 17:07:52] schlueter at phpbar dot de Description: ------------ While testing the examples from http://sitten-polizei.de/php/reflection_api/docs/language.reflection.html I found a (for me) unexpected beahvior with Reflection_Function::getDocComment() and Reflection_Method::getDocComment() the when calling PHP on the command line without paramter and copying a test script into my shell window, so PHP can read it from STDIN. If I call the same script from a file or pipe (cat test.php | /opt/php5/bin/php) all seems to work. Reproduce code: --------------- Example 14-5 from http://sitten-polizei.de/php/reflection_api/docs/language.reflection.class.reflection_method.html Expected result: ---------------- ===> The user-defined final public static method 'increment' (which is a regular method) declared in - lines 13 to 17 having the modifiers 261[final public static] ---> Documentation: '/** * Increment counter * * @final * @static * @access public * @return int */' ---> Invokation results in: int(1) Actual result: -------------- ===> The user-defined final public static method 'increment' (which is a regular method) declared in /home/johannes/- lines 13 to 17 having the modifiers 261[final public static] ---> Documentation: ' final public static function increment) final * @static * @access public * @return int */' ---> Invokation results in: int(1) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=26456&edit=1