1
0
mirror of synced 2025-02-02 13:31:45 +03:00

Fix wrong version

This commit is contained in:
Benjamin Eberlei 2014-06-03 21:43:21 +02:00
parent 530c01b5e3
commit 859465b691

View File

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