Re: [PHP-DEV] BC break with php 5.2.6

2008-03-27 Thread Stanislav Malyshev
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; } } I think that priv

Re: [PHP-DEV] BC break with php 5.2.6

2008-03-27 Thread Lokrain
Hello Marco, May be you should check the "[PHP-DEV] Inconsistencies when accessing protected members" thread. It's said there: Private means this API belongs to this class only, protected means this API > belongs to this class and the children. and you can find there a lot of useful thoughts a

[PHP-DEV] BC break with php 5.2.6

2008-03-27 Thread Marco Kaiser
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