You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i get an 'Undefined Offset 21' Exception during unserializing. I think the problem depends on the mix of different index key types (numeric, and strings). After unserializing i get an array with 22 elements, and all array keys are integers, expect the 'xmlEntryNamespace' key.That's the reason, why an index 21 does not exists. the array structure looks like this.
i found a solution, but i am not familar how to contribute and share my solution. Everything works fine, if i change the following methods in the PropertyMetadata Class.
i get an 'Undefined Offset 21' Exception during unserializing. I think the problem depends on the mix of different index key types (numeric, and strings). After unserializing i get an array with 22 elements, and all array keys are integers, expect the 'xmlEntryNamespace' key.That's the reason, why an index 21 does not exists. the array structure looks like this.
array(
0 => '...',
1 => '....',
xmlEntryNamespace => '...',
2 => '.....'
...
20 => '...'
)
i found a solution, but i am not familar how to contribute and share my solution. Everything works fine, if i change the following methods in the PropertyMetadata Class.
`
public function serialize()
{
return serialize(array(
$this->sinceVersion,
$this->untilVersion,
$this->groups,
$this->serializedName,
$this->type,
$this->xmlCollection,
$this->xmlCollectionInline,
$this->xmlEntryName,
$this->xmlEntryNamespace,
$this->xmlKeyAttribute,
$this->xmlAttribute,
$this->xmlValue,
$this->xmlNamespace,
$this->xmlKeyValuePairs,
$this->xmlElementCData,
$this->getter,
$this->setter,
$this->inline,
$this->readOnly,
$this->xmlAttributeMap,
$this->maxDepth,
parent::serialize()
));
}
public function unserialize($str)
{
$unserialized = unserialize($str);
list(
$this->sinceVersion,
$this->untilVersion,
$this->groups,
$this->serializedName,
$this->type,
$this->xmlCollection,
$this->xmlCollectionInline,
$this->xmlEntryName,
$this->xmlEntryNamespace,
$this->xmlKeyAttribute,
$this->xmlAttribute,
$this->xmlValue,
$this->xmlNamespace,
$this->xmlKeyValuePairs,
$this->xmlElementCData,
$this->getter,
$this->setter,
$this->inline,
$this->readOnly,
$this->xmlAttributeMap,
$this->maxDepth,
$parentStr
) = $unserialized;
if (isset($unserialized[8])){
$this->xmlEntryNamespace = $unserialized[8];
}
parent::unserialize($parentStr);
}
`
What do yout thing about this approach? is this to pragmatic? How can I contribute and place my possible solution?
Regards
Nico
The text was updated successfully, but these errors were encountered: