Re: 5.4.3 type hint handling
| From: | Felipe Pena | Date: | Fri, 01 Jun 2012 22:46:44 +0000 |
| Subject: | Re: 5.4.3 type hint handling | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-60722@lists.php.net to get a copy of this message | ||
Hi,
2012/6/1 Anatoliy Belsky <ab@php.net>:
> 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