pmmp / BinaryUtils

PHP library containing classes and methods for conveniently handling binary strings

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

validate booleans from binary data

dktapps opened this issue · comments

The current code accepts any non-zero value for true and 0 for false, but if a value outside of the range 0-1 is encountered, it most likely indicates corrupted data or broken code.