PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Text » Text_Wiki » Bug #7003

PEAR class is used without being required

Details

Submitted2006-03-02 20:50 UTC
Fromkloor at bgsu dot edu
Assignedjustinpatrin
StatusClosed
PackageText_Wiki
PHP VersionIrrelevant
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.