Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44626 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81354 invoked from network); 2 Jul 2009 08:42:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Jul 2009 08:42:31 -0000 Authentication-Results: pb1.pair.com smtp.mail=paul.biggar@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=paul.biggar@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.227 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: paul.biggar@gmail.com X-Host-Fingerprint: 209.85.219.227 mail-ew0-f227.google.com Received: from [209.85.219.227] ([209.85.219.227:35681] helo=mail-ew0-f227.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 58/23-65216-5F27C4A4 for ; Thu, 02 Jul 2009 04:42:30 -0400 Received: by ewy27 with SMTP id 27so1672682ewy.23 for ; Thu, 02 Jul 2009 01:42:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=GeBPmzhk1vxmh5pr9SVM+XoM4DtvqAPGaHay1qY292g=; b=Ud5vV80fecczKbhxwa7wk5RifolEjag8ChaAL1BB1hk92HmWLv7h8aYC4UTg3vFlRH MY18bCbkgIHtZqQ0bDCx1SKp14YYf7dZvu74PmB2rjgDBGl+XxPQg9h0cX/NjNWrAFoE DHvmdz2ewJ1Tr0XIidvCcyw+P/lAZxuks4sL0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=DaHaxsyIuwyK0SvdhJPF0uKnEGLrwCk4YChcHX4RR7zMkd4OpEKcLY4jaWzCEWXUVn Q9DiC6pXzZM6T9bakOY6/IRILVsarNe4nEFr6gQYuF/ng/hwaVNL81zkFhcVCR29xVtf R+tBKxUXt+p9uLDVb72AdZpiS0WU74I95mAbA= MIME-Version: 1.0 Received: by 10.210.39.2 with SMTP id m2mr7668288ebm.44.1246524147081; Thu, 02 Jul 2009 01:42:27 -0700 (PDT) In-Reply-To: <4A4C6F6C.5030901@zend.com> References: <4A4C61A1.1090602@zend.com> <4A4C6F6C.5030901@zend.com> Date: Thu, 2 Jul 2009 09:42:07 +0100 Message-ID: To: Stanislav Malyshev Cc: PHP Internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: Flexible type hinting From: paul.biggar@gmail.com (Paul Biggar) On Thu, Jul 2, 2009 at 9:27 AM, Stanislav Malyshev wrote: > There is a functionality handling default values (or, more precisely, > optional arguments) with inheritance, etc. Are optional argument specifications inherited? I did not think they were, but its not clear if you are saying they are. My understanding of PHP's optional arguments is that they only apply to a function once it is called. > And it is doing something - if > you declare interface as foo(int $a) and implement it as foo(string $a) > there may be a lot of WTF happening. I mean that it is never called, therefore the type hints are not checked, and this is fine. Paul -- Paul Biggar paul.biggar@gmail.com