Re: What is the use of "unicode.semantics" in PHP 6?

From: Date: Fri, 29 Jun 2007 07:58:09 +0000
Subject: Re: What is the use of "unicode.semantics" in PHP 6?
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.internals 
Request: Send a blank email to internals+get-30359@lists.php.net to get a copy of this message
Unicode code points can be defined with \u, but PHP6 breaks existing octal and hex escape sequences.
What do you mean? Doesn't \x20 create U0020 character? Or you mean you'd expect it to create just one-byte 0x20? Doesn't binary string do that?
PHP6 is very noisy ("Notice: fwrite(): 13 character unicode buffer downcoded for binary stream runtime_encoding", "Warning: base64_encode() expects parameter 1 to be strictly a binary string, Unicode string given")
Well, exporting and importing to and from non-unicode contexts are tricky, and fwrite and base64_encode do exactly that. Maybe some functions need to be less noisy, I don't know - but when people work with unicode they must be aware that interoperating with non-unicode contexts brings some complexity, I don't see how that can be avoided. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#30359) next »