PEAR is archived and read-only

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

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)