1
0
mirror of synced 2025-01-09 02:27:10 +03:00

Fix wrong version

This commit is contained in:
Benjamin Eberlei 2014-06-03 21:41:26 +02:00
parent e577e77867
commit 46ebb57b45

View File

@ -908,7 +908,7 @@ class ClassMetadataInfo implements ClassMetadata
public function newInstance()
{
if ($this->_prototype === null) {
if (PHP_VERSION_ID === 50428 || PHP_VERSION_ID === 50513) {
if (PHP_VERSION_ID === 50429 || PHP_VERSION_ID === 50513) {
$this->_prototype = $this->reflClass->newInstanceWithoutConstructor();
} else {
$this->_prototype = unserialize(sprintf('O:%d:"%s":0:{}', strlen($this->name), $this->name));