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 private ctor should mean "nobody but this class can create instances of this class". If somebody else is to create them, I'd say protected ctor is in place.
--
Stanislav Malyshev, Zend Software Architect
[EMAIL PROTECTED]   http://www.zend.com/
(408)253-8829   MSN: [EMAIL PROTECTED]

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to