Anyone know of a library that allows data to be serialized in C++ such that it can be deserialized using the default PHP ‘unserialize’ function?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are several implementations for other languages here
http://objectmix.com/php/362009-specification-serialize.html#post1335166
The C implementation used by PHP itself is also here:
http://svn.php.net/repository/php/php-src/branches/PHP_5_2/ext/standard/var.c
http://svn.php.net/repository/php/php-src/branches/PHP_5_2/ext/standard/var_unserializer.c
However, unless you’re absolutely certain that your choice serialization format is going to be a major bottleneck, consider using a more readily available serialization format, like JSON, XML, Protocol Buffers, or WDDX.