Ticket #229 (closed defect: fixed)
ReflectionMethod::getDocComment fails in PHP 5.2
| Reported by: | pmineault | Owned by: | somebody |
|---|---|---|---|
| Priority: | major | Milestone: | 0.9.6 |
| Component: | eAccelerator | Version: | 0.9.5 |
| Keywords: | Reflection ReflectionMethod ReflectionClass getDocComment PHP5 | Cc: |
Description
Once a file has been cached, ReflectionClass? and ReflectionMethod::getDocComment fail. Here is a simple test:
<?php
/**
* This won't show up after reload
*/
class MyTest
{
function dummyFunc()
{
}
}
$reflect = new ReflectionClass('MyTest');
echo($reflect->getDocComment());
?>
First access shows:
/ * This won't show up after reload */
Second access (reload page) shows nothing. Touching the file (adding a space and saving, for example) solves the issue on the next call but calls after that still have the same issue. I would get the doc comments are not kept in the cache files.
Change History
comment:2 Changed 12 months ago by lexsimon
- Cc lexsimon@… added
Hello,
I use PHP-5.3 with eaccelerator 0.9.6-rc1 and have the same problem. You marked the ticket as fixed. Is it because of the compilation option that you indicated or because of some option (*) that makes the thing possible or maybe because the fix is not in rc1 and only in SVN ?
Thank you.
P.S: I would *really* love a configuration option if there is no one at this time ;-)
comment:4 Changed 12 months ago by lexsimon
OK, I tried with latest trunk. It seems to be only possible with the configure option (that works). Did you already considered a php.ini option ? Is it something possible for you ?
Thank you.
comment:5 Changed 6 months ago by sim
decoration Changed 1 year ago by admin
bathtub Changed 1 year ago by admin
solar system Changed 1 year ago by admin
stair parts Changed 1 year ago by admin
solar supply Changed 1 year ago by admin
In the previous version we removed the caching code for comments. Because some people still need the comments for reflection stuff it's possible to enabled that caching code again, run configure with the --with-eaccelerator-doc-comment-inclusion switch. Make sure you clean your cache directory after enabling this!