summaryrefslogtreecommitdiff
path: root/zend/object.cpp
diff options
context:
space:
mode:
authorMartijn Otto <martijn.otto@copernica.com>2016-05-11 17:34:40 +0200
committerMartijn Otto <martijn.otto@copernica.com>2016-05-11 17:34:40 +0200
commit9f2e816c787c30ceeb139623c8dae594c4b4443d (patch)
treee434ebd2ff37c98bdc5934120b48cda1bf3899c2 /zend/object.cpp
parent570590058d16274005a4994fd8f1046d0eaf7f74 (diff)
Work in progress on PHP7 compatibility
Diffstat (limited to 'zend/object.cpp')
-rw-r--r--zend/object.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/zend/object.cpp b/zend/object.cpp
index 7da8339..0f6307e 100644
--- a/zend/object.cpp
+++ b/zend/object.cpp
@@ -76,13 +76,10 @@ Object::Object(zend_class_entry *entry, Base *base) : Value()
// member in the base object), this is a self-destructing object that
// will be destructed when the last reference to it has been removed,
// we already set the reference to zero
- new ObjectImpl(entry, base, 0 TSRMLS_CC);
+ new ObjectImpl(entry, base, ClassImpl::objectHandlers(entry) 0 TSRMLS_CC);
// now we can store it
operator=(Value(base));
-
- // install the object handlers
- Z_OBJVAL_P(_val).handlers = ClassImpl::objectHandlers(entry);
}
}