update doc
when decoding the registration, build an offset instead

and make sure the array and the raw has the same offset
php 5.3 doesn't support array de-referencing