Hi,
i noticed that some changes was made that 100% break all apps that do such
stuff:
class x extends y
{
public static function foo()
{
new self();
}
}
class y
{
private function __construct()
{
echo 'y::__construct()' . PHP_EOL;
}
}
x::foo();
with php 5.2.5 i works so that i get an output "y::__construct()" but with
5.2.6RC and -DEV
it throws an fatal error:
Fatal error: Call to private y::__construct() from context 'x'
i can remember that i asked a related question last year and someone told me
it is ok so and its a know behavior.
This change will ie. break ZF too. Any suggestions to this behavior?
--
Marco Kaiser