ZF-9390: Zend_Log::Factory should use new self()

Description

Hi,

The Zend_Log factory method should use

$log = new self();

instead of

$log = new Zend_Log();

to create the log instance, so it would be possible to extend Zend_Log without extending the factory method.

Comments

r22976

Nope,

why $log = new Zend_Log(); ?

It should be

$log = new static;

So it ist possible to do something like that;

My_Log extends Zend_Log

public function log(...) {}

With new Zend_Log, there is no chance to extend log()

appendix: in this case ther is no need to override factory-method, this is what i meant with no chance...