Created
March 12, 2015 04:48
-
-
Save habibun/b5c1002ecbd67a5e4326 to your computer and use it in GitHub Desktop.
PHP 5.6.3 Doctrine Bug ->location:vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function newInstance() | |
{ | |
if ($this->_prototype === null) { | |
if (PHP_VERSION_ID === 50429 || PHP_VERSION_ID === 50513 || PHP_VERSION_ID >= 50600) { | |
$this->_prototype = $this->reflClass->newInstanceWithoutConstructor(); | |
} else { | |
$this->_prototype = unserialize(sprintf('O:%d:"%s":0:{}', strlen($this->name), $this->name)); | |
} | |
} | |
return clone $this->_prototype; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment