Re: upgrading the zlib extension to unicode

From: Date: Tue, 25 Jul 2006 22:31:47 +0000
Subject: Re: upgrading the zlib extension to unicode
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-24974@lists.php.net to get a copy of this message
I think whenever we are storing data in external source such as compressed file, shared memory and so on, we need to treat the data as binary. On 25-Jul-06, at 6:03 PM, Nuno Lopes wrote:
Hello, So Andrei asked me to upgrade the zlib extension, but I have a few questions I would like to discuss with you: * when receiving an unicode string, what should we do? compress with as-is, prepend a BOM header (and skip it while uncompressing)? (now I'm unsure if PHP/ICU uses utf16 in the machine endianess or not) * when uncompressing, check for a BOM header and return a unicode string if it is present? return always a binary string? I also have another question, but unrelated with the zlib extension, that is what is a binary string in PHP 6? I think there were some changes on that part (and there isn't the IS_BINARY by now) and I don't really now the difference between a binary string and the old string (aka runtime_encode'd string)
Ilia Alshanetsky

« previous php.internals (#24974) next »