summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zend/extensionpath.h9
1 files changed, 9 insertions, 0 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();
+ }
};
/**