Re: ord() on binary strings

From: Date: Thu, 08 Sep 2005 22:34:23 +0000
Subject: Re: ord() on binary strings
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-18733@lists.php.net to get a copy of this message
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


« previous php.internals (#18733) next »