You are here

private function Instantiator::isPhpVersionWithBrokenSerializationFormat in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/instantiator/src/Doctrine/Instantiator/Instantiator.php \Doctrine\Instantiator\Instantiator::isPhpVersionWithBrokenSerializationFormat()

Checks whether the current PHP runtime uses an incompatible serialization format

Return value

bool

1 call to Instantiator::isPhpVersionWithBrokenSerializationFormat()
Instantiator::getSerializationFormat in vendor/doctrine/instantiator/src/Doctrine/Instantiator/Instantiator.php
Verifies if the given PHP version implements the `Serializable` interface serialization with an incompatible serialization format. If that's the case, use serialization marker "C" instead of "O".

File

vendor/doctrine/instantiator/src/Doctrine/Instantiator/Instantiator.php, line 252

Class

Instantiator
@author Marco Pivetta <ocramius@gmail.com>

Namespace

Doctrine\Instantiator

Code

private function isPhpVersionWithBrokenSerializationFormat() {
  return PHP_VERSION_ID === 50429 || PHP_VERSION_ID === 50513;
}