Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36618 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78398 invoked from network); 27 Mar 2008 17:47:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Mar 2008 17:47:41 -0000 Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.162] ([212.25.124.162:19058] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 06/66-02016-BBDDBE74 for ; Thu, 27 Mar 2008 12:47:41 -0500 Received: from us-ex1.zend.com ([192.168.16.5]) by mx1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 27 Mar 2008 19:48:07 +0200 Received: from [192.168.16.84] ([192.168.16.84]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 27 Mar 2008 10:48:04 -0700 Message-ID: <47EBDDB5.9070005@zend.com> Date: Thu, 27 Mar 2008 10:47:33 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: Marco Kaiser CC: PHP Developers Mailing List References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 27 Mar 2008 17:48:04.0594 (UTC) FILETIME=[B5624520:01C89032] Subject: Re: [PHP-DEV] BC break with php 5.2.6 From: stas@zend.com (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 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 stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com