summaryrefslogtreecommitdiff
path: root/config/config.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'config/config.cpp')
-rw-r--r--config/config.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/config/config.cpp b/config/config.cpp
new file mode 100644
index 0000000..2fcd5ad
--- /dev/null
+++ b/config/config.cpp
@@ -0,0 +1,28 @@
+/**
+ * Config.cpp
+ *
+ * Simple programs that creates the config file for PHP-CPP. PHP-CPP needs
+ * a different config file when it is installed on a system with multi-threaded
+ * PHP, and on a system with single threaded PHP.
+ *
+ * @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com>
+ * @copyright 2014 Copernica BV
+ */
+#include <iostream>
+#include <php_config.h>
+
+/**
+ * Main procedure
+ * @return int
+ */
+int main()
+{
+#ifdef ZTS
+ // also define ZTS in the config file
+ std::cout << "#define ZTS" << std::endl;
+#endif
+
+ // done
+ return 0;
+}
+