summaryrefslogtreecommitdiff
path: root/include/version.h
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2015-01-20 13:45:17 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2015-01-20 13:45:17 +0100
commit5235f87126cc2bca3907daada9f59e0c7c7bc834 (patch)
tree6b049edd2eca0b74a8acb9ff7ee0c84c93bf1a5c /include/version.h
parent821e65d876cc0ce2b32471791b02d9f7cc784c99 (diff)
PHP-CPP now checks whether an already compiled extension is still compatible with the PHP-CPP library. This prevents weird crashes when users update their PHP-CPP library, without recompiling their extensions
Diffstat (limited to 'include/version.h')
-rw-r--r--include/version.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/version.h b/include/version.h
new file mode 100644
index 0000000..85d2b66
--- /dev/null
+++ b/include/version.h
@@ -0,0 +1,17 @@
+/**
+ * Version.h
+ *
+ * Macro with API version. The API version number prevents that
+ * extensions are loaded that are incompatible with the libphpcpp.so
+ * library
+ *
+ * @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com>
+ * @copyright 2015 Copernica BV
+ */
+
+/**
+ * Macro with version number (this is incremented with every release)
+ */
+#define PHPCPP_API_VERSION 20150120
+
+