PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

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.