Re: 5.4.3 type hint handling
| From: | Anatoliy Belsky | Date: | Sat, 02 Jun 2012 11:40:05 +0000 |
| Subject: | Re: 5.4.3 type hint handling | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-60726@lists.php.net to get a copy of this message | ||
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 <ab@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
>