> Not sure if I can add and example to the RFC at this point, but I came
> across another example of this recently.
> // bindec() was doing weird things, hence converting through hex
> // sttrev() to match endian-ness to expectations; zip file values
> are little-endian
> $compressedSize = hexdec(bin2hex(strrev(fread($stream, 4)))); //
> compressed size
> bindec was returning 0 without warning, as it was passed binary data
> not a binary string. No warning bin2hex actually does the correct
> a warning here would have at least indicated there was something wrong
> with the input it was being passed instead of just 0.
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
Until the RFC is in voting you can still make amendments to it.
So feel free to add these functions/examples to the RFC.
George Peter Banyard