Re: 5.4.3 type hint handling
| From: | Anatoliy Belsky | Date: | Sat, 02 Jun 2012 10:41:03 +0000 |
| Subject: | Re: 5.4.3 type hint handling | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-60724@lists.php.net to get a copy of this message | ||
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 <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
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>