summaryrefslogtreecommitdiff
path: root/zend/nativefunction.h
diff options
context:
space:
mode:
authorMartijn Otto <martijn.otto@copernica.com>2016-05-18 11:25:55 +0200
committerMartijn Otto <martijn.otto@copernica.com>2016-05-18 11:25:55 +0200
commitcd047b9bb786166485ec21d83d047428f561e6eb (patch)
treecdc8ccd5270b54db550023a1a82bfc846feb789e /zend/nativefunction.h
parent1b2562a3af73f1b0554c73d2f9078acb00eda37b (diff)
Store all callables in a map because the hidden pointer trick no longer works
Diffstat (limited to 'zend/nativefunction.h')
-rw-r--r--zend/nativefunction.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/zend/nativefunction.h b/zend/nativefunction.h
index 073e69b..e661112 100644
--- a/zend/nativefunction.h
+++ b/zend/nativefunction.h
@@ -70,8 +70,8 @@ public:
void initialize(const std::string &prefix, zend_function_entry *entry)
{
// if there is a namespace prefix, we should adjust the name
- if (prefix.size()) _ptr = HiddenPointer<Callable>(this, prefix+"\\"+(const char *)_ptr);
-
+ if (!prefix.empty()) _name = prefix + '\\' + _name;
+
// call base initialize
Callable::initialize(entry);
}
@@ -79,7 +79,7 @@ public:
private:
/**
* Union of supported callbacks
- * One of the callbacks will be set
+ * One of the callbacks will be set
*/
union {
native_callback_0 f0;
@@ -87,7 +87,7 @@ private:
native_callback_2 f2;
native_callback_3 f3;
} _function;
-
+
/**
* The callback that is set
* @var integer