PEAR is archived and read-only

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

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