summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/classimpl.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/classimpl.cpp b/src/classimpl.cpp
index f63ddec..521affa 100644
--- a/src/classimpl.cpp
+++ b/src/classimpl.cpp
@@ -1396,6 +1396,9 @@ void ClassImpl::initialize(ClassBase *base, const std::string &prefix TSRMLS_DC)
entry.unserialize = &ClassImpl::unserialize;
}
+ // do we have a base class?
+ if (_parent && _parent->_entry) entry.parent = _parent->_entry;
+
// register the class
_entry = zend_register_internal_class(&entry TSRMLS_CC);