Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:18743 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54067 invoked by uid 1010); 9 Sep 2005 13:46:12 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 54052 invoked from network); 9 Sep 2005 13:46:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Sep 2005 13:46:12 -0000 X-Host-Fingerprint: 70.85.46.36 unknown Received: from ([70.85.46.36:35445] helo=prohost.org) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 24/C2-17383-42291234 for ; Fri, 09 Sep 2005 09:46:12 -0400 Received: (qmail 20142 invoked from network); 9 Sep 2005 13:46:08 -0000 Received: from cpe000fb56099fd-cm000f9f7d6664.cpe.net.cable.rogers.com (HELO ?192.168.1.101?) (69.196.28.148) by prohost.org with SMTP; 9 Sep 2005 13:46:08 -0000 Message-ID: <4321921F.9010404@prohost.org> Date: Fri, 09 Sep 2005 09:46:07 -0400 User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Andrei Zmievski CC: Derick Rethans , Andi Gutmans , PHP Developers Mailing List References: <6.2.3.4.2.20050908153336.042bc780@localhost> In-Reply-To: X-Enigmail-Version: 0.92.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] ord() on binary strings From: ilia@prohost.org (Ilia Alshanetsky) Andrei Zmievski wrote: > My argument was that ord() semantics and docs say that it works on > _characters_ and this simply does not make sense for the binary > strings. If we really want ord() to work on binary type, fine, but we'd > better have docs that make sense then. IMHO the docs say characters because up until now, a character was equivalent to a single byte in PHP. I think this is a documentation snafu, that should be addressed by updating the docs accordingly. Ilia