summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zend/extensionpath.h9
-rw-r--r--zend/module.h2
2 files changed, 10 insertions, 1 deletions
diff --git a/zend/extensionpath.h b/zend/extensionpath.h
index c46319a..1c5e87d 100644
--- a/zend/extensionpath.h
+++ b/zend/extensionpath.h
@@ -64,6 +64,15 @@ public:
{
return _path;
}
+
+ /**
+ * Cast to const-char*
+ * @return const char *
+ */
+ operator const char * () const
+ {
+ return _path.c_str();
+ }
};
/**
diff --git a/zend/module.h b/zend/module.h
index 374c9d6..efb06af 100644
--- a/zend/module.h
+++ b/zend/module.h
@@ -141,7 +141,7 @@ public:
ExtensionPath path(module TSRMLS_CC);
// load the module
- _handle = DL_LOAD(module);
+ _handle = DL_LOAD(path);
// handle should be valid
if (!_handle) return;