更新时间:2022-04-09 01:13:40
有serialized-php-parser
,这是一个可以解析php序列化对象的Java实现.一般来说,如果您有选择,我不会推荐 php 序列化作为交换格式,因为它不是 ascii 安全的(它包含空字节).改为使用 xml 或 json 等格式.如果您需要一些类型信息,xmlrpc 是一个不错的选择.它对 php 和 Java 都有很好的实现.
There is serialized-php-parser
, which is a Java implementation that can parse php-serialized objects. In general, if you have the choice, I wouldn't recommend php-serialized as an exchange format, because it isn't ascii-safe (It contains null-bytes). Go with a format like xml or json instead. If you need a bit of type-information, xmlrpc is a good choice. It has good implementations for both php and Java.