Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60722 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88953 invoked from network); 1 Jun 2012 22:47:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Jun 2012 22:47:07 -0000 Authentication-Results: pb1.pair.com header.from=felipensp@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=felipensp@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.53 as permitted sender) X-PHP-List-Original-Sender: felipensp@gmail.com X-Host-Fingerprint: 209.85.216.53 mail-qa0-f53.google.com Received: from [209.85.216.53] ([209.85.216.53:51787] helo=mail-qa0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 04/CC-45898-B6649CF4 for ; Fri, 01 Jun 2012 18:47:07 -0400 Received: by qadz32 with SMTP id z32so855226qad.12 for ; Fri, 01 Jun 2012 15:47:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=qy7ZBURl/bBNbzZFiOIt/HOrDF0bfl0xEjVwK1/Ndkw=; b=Bod2DcD6xQb9jAGHER/hSL6Qk+1OfXI0+YL+LgCIR683gTEv3Pg7ie6yLeOW7RCAM7 27sO0ZhG5XaXP8W119a0Y9UZ6fiiFGOmFg2s6/V+YDzrv+asdSPYoICKUaF8TPIo2fmS RJ13+3oXLWvNB6tL2TxcO7VQxN7I6gATOk6r+UBk86XFAHKaCNt6wlP7vmoBYIjDBxNJ y/BGomtSC6z611J7tfcMPEQSlMMuIPFDgP9s9rmTyNLMp6Ao+Bso0ZUPcPmD7xwp8xQF qYHmKE8XeX3RR9syDYxIGUyyfBFRQeNl7cpORZ182L4EOa/Ufd7v4NOAT75wxN/DUo83 hvhw== Received: by 10.229.135.194 with SMTP id o2mr1454202qct.42.1338590824538; Fri, 01 Jun 2012 15:47:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.4.32 with HTTP; Fri, 1 Jun 2012 15:46:44 -0700 (PDT) In-Reply-To: <371954f04ec32d79a45a84ac009ca4a8.squirrel@webmail.klapt.com> References: <371954f04ec32d79a45a84ac009ca4a8.squirrel@webmail.klapt.com> Date: Fri, 1 Jun 2012 19:46:44 -0300 Message-ID: To: ab@php.net Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] 5.4.3 type hint handling From: felipensp@gmail.com (Felipe Pena) 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) > =C2=A0 =C2=A0ZEND_ARG_TYPE_INFO(0, =C2=A0high, IS_ARRAY, 0) > =C2=A0 =C2=A0ZEND_ARG_TYPE_INFO(0, =C2=A0low, IS_ARRAY, 0) > =C2=A0 =C2=A0ZEND_ARG_TYPE_INFO(0, =C2=A0close, IS_ARRAY, 0) > =C2=A0 =C2=A0ZEND_ARG_TYPE_INFO(0, =C2=A0volume, IS_ARRAY, 0) > =C2=A0 =C2=A0ZEND_ARG_TYPE_INFO(0, =C2=A0fastPeriod, IS_LONG, 1) > =C2=A0 =C2=A0ZEND_ARG_TYPE_INFO(0, =C2=A0slowPeriod, 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) --=20 Regards, Felipe Pena