Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58878 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81883 invoked from network); 12 Mar 2012 14:12:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Mar 2012 14:12:56 -0000 Authentication-Results: pb1.pair.com smtp.mail=ircmaxell@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ircmaxell@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.170 as permitted sender) X-PHP-List-Original-Sender: ircmaxell@gmail.com X-Host-Fingerprint: 209.85.215.170 mail-ey0-f170.google.com Received: from [209.85.215.170] ([209.85.215.170:47346] helo=mail-ey0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 31/30-15296-7640E5F4 for ; Mon, 12 Mar 2012 09:12:55 -0500 Received: by eaao10 with SMTP id o10so993062eaa.29 for ; Mon, 12 Mar 2012 07:12:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=u2WRLXSdl4eEk+/1RToLR7gFUR78Je9W8eYOnSM2Eiw=; b=nIvRz6JKKU/UeDOmd7nPLTQwcgaU1UfR6mB2927JXDcmfzO7eLcE1EBn/qadxs6Pr3 zAjkrGspDVYK00DAeOYXqmzx8kHnMsYB4b978bDIniiRriwCd8CZNMPozva/EjDvAB+0 MyGUn52jv2mQjIQMgV2yMvZDkSt2DSjPkpbNwsz8n9+li+XR1BTRj/dfSitRNvdPl+fl MwXEry6kVooR4S5d4k1gEnyWUw8sksHz2yeKD+srnErXCQ7+FawNEYuys/h4PNto9Ikl z3xbfsH2CtDHk+gMlSobL6Q/fk4ijg2Ky6XfVkakAgrgrwmQWLo5d+I93FndDQrsph08 AVQw== MIME-Version: 1.0 Received: by 10.229.135.3 with SMTP id l3mr2523643qct.45.1331561570912; Mon, 12 Mar 2012 07:12:50 -0700 (PDT) Received: by 10.229.49.74 with HTTP; Mon, 12 Mar 2012 07:12:50 -0700 (PDT) In-Reply-To: References: Date: Mon, 12 Mar 2012 10:12:50 -0400 Message-ID: To: Lazare Inepologlou Cc: Arvids Godjuks , "internals@lists.php.net" Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] [POC - Patch] Scalar Type Hinting - A-La zend_parse_parameters From: ircmaxell@gmail.com (Anthony Ferrara) Lazare, > The patch of Anthony, clearly states that this is accepted: > > function foo ( int $bar = null ) { } > > And this is what I called an int|null. Yup, it does. Because that's the current behavior with array and object casting. If you default it to null in the declaration, null is a valid value. If you don't, it's not...