summaryrefslogtreecommitdiff
path: root/include/base.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/base.h')
-rw-r--r--include/base.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/base.h b/include/base.h
index f5ebed1..417aef0 100644
--- a/include/base.h
+++ b/include/base.h
@@ -34,6 +34,18 @@ protected:
*/
Base() {}
+ /**
+ * Copy constructor
+ *
+ * This copy constructor is explicitly defined to make sure that the
+ * copied object does not already have an implementation in the zend engine.
+ * Otherwise the copied object has the same object handle as the original
+ * object.
+ *
+ * @param base
+ */
+ Base(const Base &base) : _impl(nullptr) {}
+
public:
/**
* Virtual destructor