jethroo jethroo - 10 months ago 93
Ruby Question

ruby gem for parsing serialized PHP-array?

i'm consuming a SOAP webservice with savon v2 and within the response a get a serialized PHP-array which i need to parse in.

is there a ruby or rails gem providing this feature?

the php array string looks like this:




# gem search -r php|grep serial

php-serial (0.9.5)
php-serialization (0.5.3)
php-serialize (1.1.0)
php-serialize4ruby (0.0.0)
php-serialize_ryan (1.1.1)
php_serialize (1.2)
viva-php_serialize (1.1.3)

so there's at least 7 of them.