academe / SerializeParser

A PHP parser for serialized data, to be able to "peek" into serialize strings.
MIT License
4 stars 2 forks source link

Unicode support #3

Open jj5 opened 7 years ago

jj5 commented 7 years ago

The offsets in the serialization format are binary, not unicode. So on line 22 instead of:

$this->string = preg_split('//u', $string, -1, PREG_SPLIT_NO_EMPTY);

Try just:

$this->string = $string;
krichprollsch commented 7 years ago

Hello @jj5, I think it would be nice and helpful to open directly pull requests to implement your suggestions, WDYT?