Hi all, I haven't thought about this too much, just came to mind after following this thread, so ignore any stupidity. :-)
Wanting to preserve BC where possible, and figuring that code to take advantage of PHP 6's Unicode support will be either new or rewritten... Is it possible to always have Unicode support "there" (enabled, no unicode.semantics setting), as some need/want, but keep behavior of PHP 5 code exactly the same? I mean nothing Unicode is actually used unless *explicitly* specified, keeping everything IS_STRING, etc. For Unicode support in just part of your code, use a [new] u"string prefix" or (unicode) cast. Functions would still handle either type, of course, but there shouldn't be unexpected changes in them, because if they're getting Unicode strings, it's because YOU did it. For everything Unicode (like semantics=On now), instead of adding u prefixes and (unicode) casts everywhere, use declare() at the beginning of the top-most file (setting couldn't be changed after that). This seems a bit different to me than having unicode.semantics PHP_INI_PERDIR... Am I wrong, or was this considered (e.g. needing to specify anything Unicode) and I'm missing major issues...? :-/ Matt -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php