summaryrefslogtreecommitdiffstats
path: root/php-doctrine-orm-upstream.patch
diff options
context:
space:
mode:
Diffstat (limited to 'php-doctrine-orm-upstream.patch')
-rw-r--r--php-doctrine-orm-upstream.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/php-doctrine-orm-upstream.patch b/php-doctrine-orm-upstream.patch
index c8d6170..b2dff4c 100644
--- a/php-doctrine-orm-upstream.patch
+++ b/php-doctrine-orm-upstream.patch
@@ -49,7 +49,7 @@ index 5d36f64..f8b4bb7 100644
public function newInstance()
{
- if ($this->_prototype === null) {
-- if (PHP_VERSION_ID === 50429 || PHP_VERSION_ID === 50513) {
+- 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));