Home » Logging » Log » Bug #6689
Log::factory not return by reference
Details
| Submitted | 2006-02-03 22:12 UTC |
|---|---|
| From | ishinao at ishinao dot net |
| Assigned | jon |
| Status | Closed |
| Package | Log |
| PHP Version | 4.4.1 |
| OS | Linux |
| 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