Added executable flag to memory segments in TDFs
This commit is contained in:
@@ -144,7 +144,8 @@ class FromXmlService
|
||||
$this->stringService->tryStringToInt($attributes['size'] ?? null),
|
||||
$this->stringService->tryStringToInt($attributes['page-size'] ?? null),
|
||||
$attributes['access'] ?? null,
|
||||
[]
|
||||
[],
|
||||
isset($attributes['executable']) ? (bool) $attributes['executable'] : null
|
||||
);
|
||||
|
||||
foreach ($element->childNodes as $childNode) {
|
||||
|
||||
@@ -102,6 +102,8 @@ class ToXmlService
|
||||
$element->append($this->memorySegmentSectionToXml($segmentSection, $document));
|
||||
}
|
||||
|
||||
$element->setAttribute('executable',$memorySegment->executable ? '1' : '0');
|
||||
|
||||
return $element;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user