Re: ord() on binary strings

From: Date: Thu, 08 Sep 2005 21:20:43 +0000
Subject: Re: ord() on binary strings
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-18728@lists.php.net to get a copy of this message
It makes perfect sense to me that ord() would work on binary strings. When we return an ASCII value we don't limit the range returned, it can be 1 or 255. So, I see no reason to cripple this function and prevent it from working on binary data. Ilia

« previous php.internals (#18728) next »