RE: [PHP-I18N] is_string()

[email protected] (Derick Rethans)
Newsgroups php.i18n
Message-ID <Pine.LNX.4.62.0603151244130.3459@localhost>
On Wed, 15 Mar 2006, Dmitry Stogov wrote:

> In  case of "> is_string(): Z_TYPE_P() == IS_STRING  || Z_TYPE_P() ==
> IS_UNICODE",
> is_string() will return TRUE for binary data in unicode mode.
> 
> It should be:
> is_string(): Z_TYPE_P() == (UG(unicode)?IS_UNICODE:IS_STRING)
> 
> is_binary() and is_unicode() are OK.

That's what my patch does...

Derick
-- 
Derick Rethans
http://derickrethans.nl | http://ez.no | http://xdebug.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.