Home » PEAR » PEAR » Bug #6048
PEAR_Frontend::log parameters are wrong
Details
| Submitted | 2005-11-23 14:20 UTC |
|---|---|
| From | cweiske at cweiske dot de |
| Assigned | cellog |
| Status | Closed |
| Package | PEAR |
| PHP Version | Irrelevant |
| OS | any |
| 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)