Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:18723 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 79397 invoked by uid 1010); 8 Sep 2005 19:55:14 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 79382 invoked from network); 8 Sep 2005 19:55:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Sep 2005 19:55:14 -0000 X-Host-Fingerprint: 82.94.239.5 jdi.jdi-ict.nl Linux 2.5 (sometimes 2.4) (4) Received: from ([82.94.239.5:49254] helo=jdi.jdi-ict.nl) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 44/21-23233-12790234 for ; Thu, 08 Sep 2005 15:55:13 -0400 Received: from localhost (localhost [127.0.0.1]) by jdi.jdi-ict.nl (8.12.11/8.12.11) with ESMTP id j88Jt8Nk019082 for ; Thu, 8 Sep 2005 21:55:08 +0200 Received: from localhost (localhost [127.0.0.1]) by jdi.jdi-ict.nl (8.12.11/8.12.11) with ESMTP id j88Jt5LA019067 for ; Thu, 8 Sep 2005 21:55:06 +0200 Date: Thu, 8 Sep 2005 21:55:04 +0200 (CEST) X-X-Sender: derick@localhost To: PHP Developers Mailing List Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at jdi-ict.nl Subject: ord() on binary strings From: derick@php.net (Derick Rethans) Hei, I committed a patch to make ord() work on IS_BINARY strings earlier today (http://news.php.net/php.cvs/33862). Andrei doesn't like that because the description in the docs says "ord -- Return ASCII value of character", which in his opinion doesn't make much sense for binary strings. Other then ord(), there is no suitable function to show the ordinal value of a byte in a IS_BINARY string though. Comments? Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org