Ticket #1 (closed defect: fixed)
IntrospectionHelper shouldn't cause __autoload() to be called
| Reported by: | knut | Owned by: | knut |
|---|---|---|---|
| Priority: | critical | Milestone: | 2.2.0 |
| Component: | Version: | 2.1.1 | |
| Keywords: | Cc: |
Description
The IntrospectionHelper is checking return values in phpdoc comments for possible class names and does a check with class_exists(). This will cause __autoload() to be called if defined. Since this code has no reason to call __autoload() it shouldn't since it would most likely break. Typically @return void etc.
The fix is to set the second parameter to class_exists to false to ensure that __autoload() is never called.
This issue was discovered running code coverage of PRADO trunk.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
