Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53155 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25714 invoked from network); 7 Jun 2011 15:22:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Jun 2011 15:22:58 -0000 X-Host-Fingerprint: 62.168.26.251 gw102.nova.cz Received: from [62.168.26.251] ([62.168.26.251:28441] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CE/12-15404-0524EED4 for ; Tue, 07 Jun 2011 11:22:57 -0400 Message-ID: To: internals@lists.php.net Date: Tue, 07 Jun 2011 17:22:54 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; cs; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 62.168.26.251 Subject: Re: Callable typehint From: konference@kukulich.cz (Jaroslav Hanslik) Dne 6.6.2011 21:41, Hannes Magnusson napsal(a): > Hi > > As quickly mentioned in the '$arr = array('Hello', 'world'); $arr();' > thread[1], we are hitting the need for a callable typehint. > > > See attached patch+phpt; Any objections to include it in 5.4? > > -Hannes > > [1] http://php.markmail.org/message/gdas65h3im52sleg I like the idea. However I think the type hint should be named "callback" instead of "callable" because this name is used already in a lot of documentations and also in PHP documentation http://php.net/manual/en/language.pseudo-types.php#language.types.callback Jaroslav Hanslik