summaryrefslogtreecommitdiff
path: root/zend/sapi.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'zend/sapi.cpp')
-rw-r--r--zend/sapi.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/zend/sapi.cpp b/zend/sapi.cpp
new file mode 100644
index 0000000..79393f7
--- /dev/null
+++ b/zend/sapi.cpp
@@ -0,0 +1,31 @@
+/**
+ * Sapi.cpp
+ *
+ * This file holds the implementation for the Php::sapi_name() function
+ *
+ * @author Toon Schoenmakers <toon.schoenmakers@copernica.com>
+ */
+
+/**
+ * Dependencies
+ */
+#include "includes.h"
+
+/**
+ * Open PHP namespace
+ */
+namespace Php {
+
+/**
+ * Retrieve the sapi name we're running on
+ * @return const char*
+ */
+const char *sapi_name()
+{
+ return sapi_module.name;
+}
+
+/**
+ * End of namespace
+ */
+}