Re: Scary note for gettype() in docs
| From: | Victor Bolshov | Date: | Tue, 02 Mar 2010 05:33:32 +0000 |
| Subject: | Re: Scary note for gettype() in docs | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-47080@lists.php.net to get a copy of this message | ||
From the user point of view it might seem that 5.x "string" and 6.x
"unicode" are all strings, whatever you call them. Still, I am sure
there _is_ a background for the decision to distinguish between
"string" and "unicode".
2 марта 2010 г. 1:27 пользователь Antony Dovgal <tony@daylessday.org>
написал:
> On 03/01/2010 11:35 PM, Stan Vassilev wrote:
>>
>> Hi,
>>
>> The gettype() documentation warns people that the returned string is "subject to
>> change".
>> Why is there a function that's subject to change in the API?
>
> Because life is complicated.
> Because gettype("test") returns "string" in 5.x and "unicode" in
> 6.0.
>
> What exactly are you trying to fix? And what exactly are you proposing?
>
> --
> Wbr,
> Antony Dovgal
> ---
> http://pinba.org - realtime statistics for PHP
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
С уважением,
Виктор