You are here

public function Manifest::deserializeMetaData in Drupal 7

Return value

mixed|null

File

misc/typo3/phar-stream-wrapper/src/Phar/Manifest.php, line 158

Class

Manifest

Namespace

TYPO3\PharStreamWrapper\Phar

Code

public function deserializeMetaData() {
  if (empty($this->metaData)) {
    return null;
  }
  $result = Unserialize::unserialize($this->metaData, array(
    'allowed_classes' => false,
  ));
  $serialized = json_encode($result);
  if (strpos($serialized, '__PHP_Incomplete_Class_Name') !== false) {
    throw new DeserializationException('Meta-data contains serialized object', 1539623382);
  }
  return $result;
}