ord() on binary strings

From: Date: Thu, 08 Sep 2005 19:55:04 +0000
Subject: ord() on binary strings
Groups: php.internals 
Request: Send a blank email to internals+get-18723@lists.php.net to get a copy of this message
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

« previous php.internals (#18723) next »