Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:18733 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73445 invoked by uid 1010); 8 Sep 2005 22:34:33 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 73430 invoked from network); 8 Sep 2005 22:34:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Sep 2005 22:34:33 -0000 X-Host-Fingerprint: 80.74.107.235 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from ([80.74.107.235:60528] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 50/26-17383-67CB0234 for ; Thu, 08 Sep 2005 18:34:31 -0400 Received: (qmail 9386 invoked from network); 8 Sep 2005 22:34:26 -0000 Received: from localhost (HELO ANDI-NOTEBOOK.zend.com) (127.0.0.1) by localhost with SMTP; 8 Sep 2005 22:34:26 -0000 Message-ID: <6.2.3.4.2.20050908153336.042bc780@localhost> X-Mailer: QUALCOMM Windows Eudora Version 6.2.3.4 Date: Thu, 08 Sep 2005 15:34:23 -0700 To: Derick Rethans , PHP Developers Mailing List In-Reply-To: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] ord() on binary strings From: andi@zend.com (Andi Gutmans) Did Andrei have a reason besides the docs? Even without IS_UNICODE/IS_BINARY it sounds like the docs could use tuning anyway, no? Andi At 12:55 PM 9/8/2005, Derick Rethans wrote: >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 > >-- >PHP Internals - PHP Runtime Development Mailing List >To unsubscribe, visit: http://www.php.net/unsub.php