Deserializer removes too many characters
Brought to you by:
sephiroth_tmm
In the deserializer line 172 has an extra term which isn't required, causing it to miss some variables. I've got quite a complex object structure, and currently is misses variables out.
At present the line is
this.buffer = this.buffer.substr (this.buffer.indexOf (";", _value[0] + length(_type) + length(_value[0].toString()) ) + 1);
But as far as i can tell it should be
this.buffer = this.buffer.substr (this.buffer.indexOf (";", _value[0] + length(_type)) + 1);
With this change it works perfectly for me.
Thanks
Logged In: NO
That should have said line 162.
It might be worth mentioning i'm using MDM Zinc to save my classes to the hard drive, so its being serialized in flash, saved to the hard drive and then loaded and deserialized in flash again. I thought there might be a difference in the PHP version which needed the extra term on line 162.
Thanks, Glyn Jeffries