Re: Re: Array type hinting for internal functions..
| From: | Hannes Magnusson | Date: | Thu, 15 Jun 2006 21:36:10 +0000 |
| Subject: | Re: Re: Array type hinting for internal functions.. | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-24140@lists.php.net to get a copy of this message | ||
On 6/15/06, Lukas Smith <lsmith@php.net> wrote:
Hannes Magnusson wrote: Hi all I am sure this was decided upon long time ago, but there seem to be few out there that do not want this... should I revert array type hinting for internal functions or continue adding them were appropriate while I add the argument info? Just to be clear; I'm introducing array type hinting for all internal functions expecting array and removing therefor useless array type checks inside the functions. These changes however introduce tiny backward compatibility break since it'll emit E_RECOVERABLE rather than E_WARNING... Is this a similar change as the array_merge() change?If the functions do castings it won't get type hinted array, but those who specifically expect array, and bail out when they get whatever else, will get type hinted array. -Hannes