Hi Hannes,

ah, now i see. The generator has worked on 5.3 with the erroneous type
hints. But all that IS_LONG turned into "<type>array</type>". And on 5.4
as i've mentioned previously, it gives "unknown typehint" when invoking
the corresponding function. No way around to edit the doc templates
manually though :) .

imho a module shouldn't be allowed to compile when known scalar types are
defined in the arg info. Just to avoid confusion.

Thanks for clearing this guys.

Regards

Anatoliy

On Sat, June 2, 2012 13:04, Hannes Magnusson wrote:
> On Sat, Jun 2, 2012 at 11:41 AM, Anatoliy Belsky <a...@php.net> wrote:
>> 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 .
>
> The doc generator only supports array and class typehints.
> Everything else will default to "mixed" (IIRC) and you'll need to edit
> the template afterwards.
>
> These typehints you are trying to use, if allowed, would actually
> reject "10" for IS_LONG before the function would ever be executed. I
> highly doubt that is what you want.
>
> -Hannes
>



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

Reply via email to