Fix flag libraries.
Add functions: isset and ord.
Add a function: bin2hex.
Change the namespace of functions to php.