Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:24972 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51714 invoked by uid 1010); 25 Jul 2006 22:23:44 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 51699 invoked from network); 25 Jul 2006 22:23:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Jul 2006 22:23:44 -0000 X-PHP-List-Original-Sender: nlopess@php.net X-Host-Fingerprint: 212.55.154.26 relay6.ptmail.sapo.pt Linux 2.4/2.6 Received: from ([212.55.154.26:40901] helo=sapo.pt) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id FE/07-04178-D3596C44 for ; Tue, 25 Jul 2006 18:03:43 -0400 Received: (qmail 24294 invoked from network); 25 Jul 2006 22:03:38 -0000 Received: from unknown (HELO sapo.pt) (10.134.35.159) by relay6 with SMTP; 25 Jul 2006 22:03:38 -0000 Received: (qmail 28261 invoked from network); 25 Jul 2006 22:03:39 -0000 X-AntiVirus: PTMail-AV 0.3-0.88.3 X-Virus-Status: Clean (0.00471 seconds) Received: from unknown (HELO pc07653) (nunoplopes@sapo.pt@[82.155.75.5]) (envelope-sender ) by mta9 (qmail-ldap-1.03) with SMTP for ; 25 Jul 2006 22:03:39 -0000 Message-ID: <006501c6b036$2f6f3e60$0100a8c0@pc07653> To: "PHPdev" Date: Tue, 25 Jul 2006 23:03:39 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="Windows-1252"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 Subject: upgrading the zlib extension to unicode From: nlopess@php.net ("Nuno Lopes") 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) I hope my questions are clear and make sense, Nuno