Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:16044 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11725 invoked by uid 1010); 20 Apr 2005 13:52:30 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 11710 invoked from network); 20 Apr 2005 13:52:30 -0000 Received: from unknown (HELO pb1.pair.com) (127.0.0.1) by localhost with SMTP; 20 Apr 2005 13:52:30 -0000 X-Host-Fingerprint: 69.64.38.41 bluga.net Linux 2.5 (sometimes 2.4) (4) Received: from ([69.64.38.41:33612] helo=bluga.net) by pb1.pair.com (ecelerity 1.2.12rc1 r(5476:5477)) with SMTP id 32/E2-45122-D9E56624 for ; Wed, 20 Apr 2005 09:52:30 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by bluga.net (Postfix) with ESMTP id 964C521C729; Wed, 20 Apr 2005 08:50:20 -0500 (CDT) Received: from bluga.net ([127.0.0.1]) by localhost (bluga.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18159-06; Wed, 20 Apr 2005 08:50:20 -0500 (CDT) Received: from [192.168.0.102] (cpe-66-65-39-8.nyc.res.rr.com [66.65.39.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by bluga.net (Postfix) with ESMTP id 229D721C1A0; Wed, 20 Apr 2005 08:50:20 -0500 (CDT) Message-ID: <42665E99.8000609@chiaraquartet.net> Date: Wed, 20 Apr 2005 09:52:25 -0400 User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Antony Dovgal Cc: internals@lists.php.net References: <20050420031150.63328.qmail@lists.php.net> <20050420122407.0345f3ce.antony@zend.com> In-Reply-To: <20050420122407.0345f3ce.antony@zend.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at bluga.net Subject: Re: [PHP-DEV] protected/private function __construct() not allowed in 5.0.4? From: greg@chiaraquartet.net (Greg Beaver) Antony Dovgal wrote: >On Tue, 19 Apr 2005 23:11:46 -0400 >Greg Beaver wrote: > > > >>Hi all, >> >>I just spent quite a while searching the archives, and can't find any >>explanation of why this code worked in 5.0.3 but doesn't in 5.0.4: >> >>>class blah { >> protected function __construct(){} >>} >>?> >> >> > >Works fine with HEAD, 5.0.5-dev & 5.0.4. >Could you plz explain what did you mean when you said "doesn't work" ? > I didn't read the error message closely enough - when extending the base class, which has a public constructor, the protected keyword is no longer allowed. Fatal error: Access level to Chiara_PEAR_Server_Frontend_Xmlrpc5_Package ::__construct() must be public (as in class Chiara_XML_RPC5_Server) in c:\php 5\pear\Chiara\PEAR\Server\Frontend\Xmlrpc5.php on line 40
Try this code (which worked in 5.0.3) Greg