Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:55476 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 77782 invoked from network); 17 Sep 2011 13:43:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Sep 2011 13:43:31 -0000 Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@googlemail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=nikita.ppv@googlemail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 209.85.215.170 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@googlemail.com X-Host-Fingerprint: 209.85.215.170 mail-ey0-f170.google.com Received: from [209.85.215.170] ([209.85.215.170:64865] helo=mail-ey0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 24/A0-05466-204A47E4 for ; Sat, 17 Sep 2011 09:43:31 -0400 Received: by eyh6 with SMTP id 6so1089142eyh.29 for ; Sat, 17 Sep 2011 06:43:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=kERicllffsegt9Qvp6XpQ9HSuUVd026F66ihdGnMt2Y=; b=Vj9767eVJaAxikxsGWllT1W33qVlDQo99f3kaBJiyXjtD7CbXAcWpIpOTXaksMM7mX rlbnZZvu2fYJzmTbUepJmysqbsM2pECFS0dclxpLXfCMZu7RGg/hjaEVil/2kSmNtUsH ODwQtEYkaAWc+Edz+gA+QyM3EGc5MDPhrm5UQ= MIME-Version: 1.0 Received: by 10.14.3.138 with SMTP id 10mr153645eeh.96.1316267006820; Sat, 17 Sep 2011 06:43:26 -0700 (PDT) Received: by 10.14.99.205 with HTTP; Sat, 17 Sep 2011 06:43:26 -0700 (PDT) In-Reply-To: References: Date: Sat, 17 Sep 2011 15:43:26 +0200 Message-ID: To: RQuadling@gmail.com Cc: PHP internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] __constructor parameter limitations. From: nikita.ppv@googlemail.com (Nikita Popov) Hi Richard! Which change are you talking about? I just tried doing: wrote: > Hi. > > With the recent BC with regard the locking of the constructor's > signature for subclasses, what is the expected mechanism for allowing > a subclass to have additional parameters? > > You can always supply them and use func_get_args() / func_num_args() / > etc. to read them. > > It would seem that the limitation restricts the capabilities. I'm not > a purist. Software development is a compromise between purity and > getting the job done in an efficient and understandable manner. > > By allowing undocumented parameters to the constructor (due to the > enforced signature), this would seem to break things on a different > front (I can't docblock non defined parameters for examples).