Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60724 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30688 invoked from network); 2 Jun 2012 10:41:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Jun 2012 10:41:09 -0000 Authentication-Results: pb1.pair.com header.from=ab@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=ab@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 85.214.73.107 as permitted sender) X-PHP-List-Original-Sender: ab@php.net X-Host-Fingerprint: 85.214.73.107 klapt.com Received: from [85.214.73.107] ([85.214.73.107:43333] helo=h1123647.serverkompetenz.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5B/F2-45898-4CDE9CF4 for ; Sat, 02 Jun 2012 06:41:09 -0400 Received: by h1123647.serverkompetenz.net (Postfix, from userid 1006) id F03059145B6; Sat, 2 Jun 2012 12:41:04 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on h1123647.serverkompetenz.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=3.5 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.1 Received: from webmail.klapt.com (h1123647.serverkompetenz.net [127.0.0.1]) by h1123647.serverkompetenz.net (Postfix) with ESMTP id 2A17F91457A; Sat, 2 Jun 2012 12:41:03 +0200 (CEST) Received: from 94.216.44.68 (SquirrelMail authenticated user anatoliy@belsky.info) by webmail.klapt.com with HTTP; Sat, 2 Jun 2012 12:41:03 +0200 Message-ID: In-Reply-To: References: <371954f04ec32d79a45a84ac009ca4a8.squirrel@webmail.klapt.com> Date: Sat, 2 Jun 2012 12:41:03 +0200 To: "Felipe Pena" Cc: ab@php.net, internals@lists.php.net Reply-To: ab@php.net User-Agent: SquirrelMail/1.4.21 MIME-Version: 1.0 Content-Type: text/plain;charset=UTF-8 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Re: [PHP-DEV] 5.4.3 type hint handling From: ab@php.net ("Anatoliy Belsky") Hi Felipe, that's ok but doesn't answer the question with the doc generator :) . Another issue with this were "php --re" where people would want to look at the param list. imho it looks more consistent in 5.3 . Cheers Anatoliy On Sat, June 2, 2012 00:46, Felipe Pena wrote: > Hi, > > 2012/6/1 Anatoliy Belsky : >> Hi, >> >> I'm experiencing an issue adding type hints to the function prototypes. >> The following definition gives the "unknown typehint" error when >> invoking >> a function >> >> ZEND_BEGIN_ARG_INFO_EX(arg_info_trader_adosc, 0, 0, 4) >>    ZEND_ARG_TYPE_INFO(0,  high, IS_ARRAY, 0) >>    ZEND_ARG_TYPE_INFO(0,  low, IS_ARRAY, 0) >>    ZEND_ARG_TYPE_INFO(0,  close, IS_ARRAY, 0) >>    ZEND_ARG_TYPE_INFO(0,  volume, IS_ARRAY, 0) >>    ZEND_ARG_TYPE_INFO(0,  fastPeriod, IS_LONG, 1) >>    ZEND_ARG_TYPE_INFO(0,  slowPeriod, IS_LONG, 1) >> ZEND_END_ARG_INFO(); >> >> > > We do not use ZEND_ARG_TYPE_INFO() with scalar types that are not > covered with the type hint supports. (i.e. string, integer, double, > resource) > > -- > Regards, > Felipe Pena > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >