From 9a1c12578b97507d676081bf9a395248f9904a8c Mon Sep 17 00:00:00 2001 From: Emiel Bruijntjes Date: Mon, 13 Apr 2015 11:04:01 +0200 Subject: fix casting error --- zend/extensionpath.h | 9 +++++++++ 1 file changed, 9 insertions(+) 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(); + } }; /** -- cgit v1.2.3