Re: is_string()

From: Date: Fri, 17 Mar 2006 22:17:34 +0000
Subject: Re: is_string()
References: 1 2 3 4  Groups: php.i18n 
Request: Send a blank email to php-i18n+get-990@lists.php.net to get a copy of this message
I find that confusing too. Given the commit log, it is even more confusing: - Updated is_string(): If Unicode semantics is turned on, return "true" for Unicode strings only. If Unicode semantics is turned off, return "true" for native strings only. It makes is_string basically useless, I can imagine two solutions: - keep it and always returns true (unicode and binary strings are strings anyway)
You have a good point here. is_string() should treat both types as "string" type.
- deprecate it in php 6.0, it will still returns true. At least people will know that they should use the new functions
Ideally we'd have is_text() that would return true for both and deprecate is_string(), but that seems like a big change for not a whole lot of pay-off. -Andrei

« previous php.i18n (#990) next »