Hello,
is it possible to return unsigned chars from an extension?
I have looked and cant find anything on it, or maybe i am looking for the wrong keywords.
Thanks
ps i sent this to the general list on accident. i am not trying to flood the list.
is it possible to return unsigned chars from an extension?
I have looked and cant find anything on it, or maybe i am looking for the wrong keywords.
Return to PHP-code?
No. PHP doesn't have explicitly signed or unsigned chars. PHP has "strings"
you can return:
- string of chars
- int (array of ints?)
Also, see http://docs.php.net/ord
ord()
function converts first byte of byte-string to it's unsigned numeric representation