Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:24974 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58613 invoked by uid 1010); 25 Jul 2006 22:51:56 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 58598 invoked from network); 25 Jul 2006 22:51:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Jul 2006 22:51:56 -0000 Authentication-Results: pb1.pair.com header.from=iliaal@gmail.com; domainkeys=good DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: iliaal@gmail.com X-Host-Fingerprint: 64.233.184.233 wr-out-0506.google.com Linux 2.4/2.6 Received: from ([64.233.184.233:27173] helo=wr-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id 5D/A7-04178-ADB96C44 for ; Tue, 25 Jul 2006 18:31:55 -0400 Received: by wr-out-0506.google.com with SMTP id i22so864232wra for ; Tue, 25 Jul 2006 15:31:52 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:in-reply-to:references:mime-version:x-priority:content-type:message-id:cc:from:subject:date:to:x-mailer:sender; b=gMbmQAGHrnx2GFdzJmMob8jgtsz6WZSoJBvOMjC3+HzLpqTr90CBuMKr0eq5EZwrY8fICAFNGkGNXR8XDuNDhI0Fw0g3JqTS1ddK+AF04uAw90xk8ij8LcUPnpvzQzXv5WmS7IPROmzlvFKOGOJTUy9kBCEVlUYZA35xPIpkH94= Received: by 10.64.48.20 with SMTP id v20mr6090032qbv; Tue, 25 Jul 2006 15:31:51 -0700 (PDT) Received: from ?192.168.1.6? ( [72.59.8.142]) by mx.gmail.com with ESMTP id q16sm3422319qbq.2006.07.25.15.31.51; Tue, 25 Jul 2006 15:31:51 -0700 (PDT) In-Reply-To: <006501c6b036$2f6f3e60$0100a8c0@pc07653> References: <006501c6b036$2f6f3e60$0100a8c0@pc07653> Mime-Version: 1.0 (Apple Message framework v752.2) X-Priority: 3 Content-Type: multipart/alternative; boundary=Apple-Mail-25--534151519 Message-ID: Cc: "PHPdev" Date: Tue, 25 Jul 2006 18:31:47 -0400 To: Nuno Lopes X-Mailer: Apple Mail (2.752.2) Sender: Ilia Alshanetsky Subject: Re: [PHP-DEV] upgrading the zlib extension to unicode From: ilia@prohost.org (Ilia Alshanetsky) --Apple-Mail-25--534151519 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed 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 --Apple-Mail-25--534151519--