summaryrefslogtreecommitdiff
path: root/zend/extension.cpp
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 /zend/extension.cpp
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 'zend/extension.cpp')
-rw-r--r--zend/extension.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/zend/extension.cpp b/zend/extension.cpp
index 1545f89..4ad54a3 100644
--- a/zend/extension.cpp
+++ b/zend/extension.cpp
@@ -15,9 +15,10 @@ namespace Php {
* Constructor that defines a number of functions right away
* @param name Extension name
* @param version Extension version string
+ * @param apiversion API version number
*/
-Extension::Extension(const char *name, const char *version) :
- Namespace(""), _impl(new ExtensionImpl(this, name, version)) {}
+Extension::Extension(const char *name, const char *version, int apiversion) :
+ Namespace(""), _impl(new ExtensionImpl(this, name, version, apiversion)) {}
/**
* Destructor