summaryrefslogtreecommitdiff
path: root/zend/extensionimpl.h
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2015-01-20 17:14:10 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2015-01-20 17:14:10 +0100
commitae35c4f2b94e37c871ec144ca83c93f215ac6b26 (patch)
tree73bfe1c808b48c966c3a1b4161f626bb705dbdbf /zend/extensionimpl.h
parentf7ab1cd465cba96635b79281efef4790edc38a1a (diff)
parent5235f87126cc2bca3907daada9f59e0c7c7bc834 (diff)
resolved conflict
Diffstat (limited to 'zend/extensionimpl.h')
-rw-r--r--zend/extensionimpl.h27
1 files changed, 25 insertions, 2 deletions
diff --git a/zend/extensionimpl.h b/zend/extensionimpl.h
index a2a3a44..83deb36 100644
--- a/zend/extensionimpl.h
+++ b/zend/extensionimpl.h
@@ -37,15 +37,16 @@ protected:
* @var zend_ini_entry
*/
zend_ini_entry *_ini = nullptr;
-
+
public:
/**
* Constructor
* @param data Extension object created by the extension programmer
* @param name Name of the extension
* @param version Version number
+ * @param apiversion API version number
*/
- ExtensionImpl(Extension *data, const char *name, const char *version);
+ ExtensionImpl(Extension *data, const char *name, const char *version, int apiversion);
/**
* No copy'ing and no moving
@@ -58,6 +59,18 @@ public:
*/
virtual ~ExtensionImpl();
+ /**
+ * The extension name
+ * @return const char *
+ */
+ const char *name() const;
+
+ /**
+ * The extension version
+ * @return const char *
+ */
+ const char *version() const;
+
/**
* Is the object locked (true) or is it still possible to add more functions,
* classes and other elements to it?
@@ -131,6 +144,16 @@ private:
* @return int 0 on success
*/
static int processIdle(int type, int module_number TSRMLS_DC);
+
+ /**
+ * Function that is called when the PHP engine initializes with a different PHP-CPP
+ * version for the libphpcpp.so file than the version the extension was compiled for
+ * @param type Module type
+ * @param number Module number
+ * @param tsrm_ls
+ * @return int 0 on success
+ */
+ static int processMismatch(int type, int module_number TSRMLS_DC);
};
/**