BC break with php 5.2.6

From: Date: Thu, 27 Mar 2008 08:25:48 +0000
Subject: BC break with php 5.2.6
Groups: php.internals php.qa 
Request: Send a blank email to internals+get-36606@lists.php.net to get a copy of this message
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

« previous php.internals (#36606) next »