summaryrefslogtreecommitdiff
path: root/src/nullmember.h
diff options
context:
space:
mode:
authorMartijn Otto <martijn.otto@copernica.com>2014-02-14 16:30:23 +0100
committerMartijn Otto <martijn.otto@copernica.com>2014-02-14 16:30:23 +0100
commit06aa5fd5afaba69544b93654fb0a4f9c2651306e (patch)
tree99cd2ee120786a84531b450f9ef64e2319ef5192 /src/nullmember.h
parent5c23fee5ce58ae66a70f3bd19a1dc2dff7220f13 (diff)
Merged pull request #14
Diffstat (limited to 'src/nullmember.h')
-rw-r--r--src/nullmember.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/nullmember.h b/src/nullmember.h
index 3fdb6b3..e5fdd62 100644
--- a/src/nullmember.h
+++ b/src/nullmember.h
@@ -49,6 +49,22 @@ public:
zend_declare_property_null(entry, (char *) name, size, flags);
#endif
}
+
+ /**
+ * Virtual method to declare the class constant
+ * @param entry Class entry
+ * @param name Name of the member
+ * @param size Size of the name
+ * @param flags Additional flags
+ */
+ virtual void declareConst(struct _zend_class_entry *entry, const char *name, int size)
+ {
+#if PHP_VERSION_ID >= 50400
+ zend_declare_class_constant_null(entry, name, size);
+#else
+ zend_declare_class_constant_null(entry, (char *) name, size);
+#endif
+ };
};
/**