From: D dot Kingma at jool dot nl
Operating system: Win XP
PHP version: 5CVS-2004-06-14 (dev)
PHP Bug Type: Zend Engine 2 problem
Bug description: No results from reflection API getDocComment
Description:
------------
The getDocComment method from the reflection API (reflectionMethod /
reflectionClass) doesn't give any results sinds the latest update to the
reflection API (~4days ago).
Reproduce code:
---------------
class testReflection{
/**
* Function to test the getDocComment() method
*/
function getComment(){
}
}
$x=new reflectionMethod('testReflection','getComment');
$comment=$x->getDocComment();
echo "Comment: '$comment'";
Expected result:
----------------
Comment: '* Function to test the getDocComment() method'
Actual result:
--------------
Comment: ''
--
Edit bug report at http://bugs.php.net/?id=28781&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28781&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28781&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=28781&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=28781&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=28781&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=28781&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=28781&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=28781&r=support
Expected behavior: http://bugs.php.net/fix.php?id=28781&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=28781&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=28781&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=28781&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28781&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=28781&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=28781&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=28781&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28781&r=float