Home » Text » Text_Wiki » Bug #7003
PEAR class is used without being required
Details
| Submitted | 2006-03-02 20:50 UTC |
|---|---|
| From | kloor at bgsu dot edu |
| Assigned | justinpatrin |
| Status | Closed |
| Package | Text_Wiki |
| PHP Version | Irrelevant |
| Roadmaps | (Not assigned) |
Comments
[2006-03-02 20:50 UTC] kloor at bgsu dot edu
Description:
------------
In the new singleton() and factory() methods of Text_Wiki class, the PEAR class is referenced for error handling. Unfortunately, the Text/Wiki.php script does not require the PEAR.php and therefore errors occur due to the missing class if some other script has not previously loaded it.
The rest of the code uses the Text_Wiki error() and isError() methods, which only load the PEAR class when necessary.