Am 02.01.2012 16:18, schrieb Ivan Habunek:
Hi Florian,

On 2 January 2012 16:07, Florian Semm<[email protected]>  wrote:
That's a good point and it isn't much work.

Do we need the $_classes array or is a naming-conversion for the classes
(PEAR/Zend) an alternative solution?
I'm not a fan of the PEAR naming convention (and neither is Christian).

Anyway, we would rather not change the naming convention at this point
in time. It's a lot of work and does not contribute much to the code
base. The long-term plan is to start using namespaces at some time in
the future. At that point we will re-think the whole naming
convention.

PEAR naming conversion was just a example for pseudo namespaces and it is backward compatible.

Namespaces are not planed for the 2.3 release, right?

The problem is that namespaces would make log4php incompatible with
PHP<  5.3 so this is currently not acceptable because a majority of
people is still using 5.2 (I blame the hosting firms).

Don't forget PHP4! ;)

By using namespaces we could rename LoggerLayoutPattern to
\apache\log4php\layouts\PatternLayout, or something similar. This
would make everything nicer, and we can write a generic autoload
method instead of having the classes array.

the autoloader method is in this case very easy:

$class = str_replace('\\', '/', $class) . '.php';
require_once($class);


btw: happy new year ;)
To you too! :-)

Ivan

Reply via email to