Hi,

2012/6/1 Anatoliy Belsky <a...@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

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to