Re: ord() on binary strings

From: Date: Fri, 09 Sep 2005 13:46:07 +0000
Subject: Re: ord() on binary strings
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-18743@lists.php.net to get a copy of this message
Andrei Zmievski wrote: > My argument was that ord() semantics and docs say that it works on > _characters_ and this simply does not make sense for the binary > strings. If we really want ord() to work on binary type, fine, but we'd > better have docs that make sense then. IMHO the docs say characters because up until now, a character was equivalent to a single byte in PHP. I think this is a documentation snafu, that should be addressed by updating the docs accordingly. Ilia

« previous php.internals (#18743) next »