Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71146 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23243 invoked from network); 15 Jan 2014 19:27:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Jan 2014 19:27:10 -0000 Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 198.187.29.240 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 198.187.29.240 imap2-1.ox.registrar-servers.com Received: from [198.187.29.240] ([198.187.29.240:34922] helo=imap2-1.ox.registrar-servers.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C9/B5-26701-C01E6D25 for ; Wed, 15 Jan 2014 14:27:10 -0500 Received: from [192.168.0.200] (unknown [176.25.177.94]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by oxmail.registrar-servers.com (Postfix) with ESMTPSA id 0573D5A0051; Wed, 15 Jan 2014 14:27:04 -0500 (EST) Message-ID: <52D6E107.6010303@ajf.me> Date: Wed, 15 Jan 2014 19:27:03 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Robert Stoll , 'Philip Sturgeon' , internals@lists.php.net References: <001301cf1227$6d082ab0$47188010$@tutteli.ch> In-Reply-To: <001301cf1227$6d082ab0$47188010$@tutteli.ch> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Introducing "Array Of" RFC From: ajf@ajf.me (Andrea Faulds) On 15/01/14 19:24, Robert Stoll wrote: > But about some details. I am not sure if I got the implementation right (haven't done any code contributions so far, so > I am not really familiar with the source code) but it seems that a check for NULL is implemented for the actual > parameter which is perfectly fine (done for other type hints as well) but it also checks if all members of an array are > not NULL and the check returns a failure if NULL is detected. I think that's wrong, NULL is a perfect valid entry in an > array. I agree with this. NULL should be considered a valid substitute for a value of any type. -- Andrea Faulds http://ajf.me/