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 » Logging » Log » Bug #6689

Log::factory not return by reference

Details

Submitted2006-02-03 22:12 UTC
Fromishinao at ishinao dot net
Assignedjon
StatusClosed
PackageLog
PHP Version4.4.1
OSLinux
Roadmaps(Not assigned)

Comments

[2006-02-03 22:12 UTC] ishinao at ishinao dot net

Description:
------------
At current version 1.9.3, the factory method don't return the object by referece.
# So Log_mail cannot send a mail, because the registered shutdown function runs another instance's flush method.

Test script:
---------------
if (class_exists($class)) {
- $obj = new $class($name, $ident, $conf, $level);
+ $obj = &new $class($name, $ident, $conf, $level);
return $obj;
}

[2006-02-03 22:13 UTC] ishinao at ishinao dot net

sorry, the summary changed