PHP-compatible unserializer for C++.