Re: What is the use of "unicode.semantics" in PHP 6?
| From: | Pierre | Date: | Fri, 29 Jun 2007 08:03:53 +0000 |
| Subject: | Re: What is the use of "unicode.semantics" in PHP 6? | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-30360@lists.php.net to get a copy of this message | ||
Hi,
On 6/29/07, Stanislav Malyshev <stas@zend.com> wrote:
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.It can't (and should not be). And it is not possible to make old releases compatible with the newly introduced binary cast (noop in 5.2). I thought we made it clear already and I'm unsure why Tomas brought it back to the list of griefs. --Pierre