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 » PEAR » PEAR » Bug #6048

PEAR_Frontend::log parameters are wrong

Details

Submitted2005-11-23 14:20 UTC
Fromcweiske at cweiske dot de
Assignedcellog
StatusClosed
PackagePEAR
PHP VersionIrrelevant
OSany
Roadmaps(Not assigned)

Comments

[2005-11-23 14:20 UTC] cweiske at cweiske dot de

Description:
------------
PEAR_Common::log tries to check if an ui is registered and calls the log() function of that object:
> $ui->log($msg, $append_crlf);

However, to be accepted as ui, one must implement PEAR_Frontend which defines the log method as follows:
> function log($level, $msg, $append_crlf = true)

IMO the definition in PEAR/Frontend.php#log() has to be
> function log($msg, $append_crlf = true)