On 3/8/2017 7:36 PM, Andrea Faulds wrote:
> Hi,
> 
> Andrey Andreev wrote:
>> The question is rather "is this value a string?", only with the added
>> assumption that __toString() objects are treated as "string objects"
>> and thus fulfill the condition (another reason why I went for an
>> is_string() parameter).
> 
> This is a faulty assumption. The presence of __toString() doesn't mean
> the object is a string, or intended to be used like one.
> 

What is it then in your book?

-- 
Richard "Fleshgrinder" Fussenegger

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

Reply via email to