diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-25 10:35:12 +0100 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-25 10:35:12 +0100 |
commit | af85f97c832ba318373db3ad6df72ebedbad1a1d (patch) | |
tree | e5beabe1756207893b869c5213a02f98a50d25d6 /config | |
parent | 811c83de9e6410435b6b9c10b058b04b2fcae5c3 (diff) |
ZTS thread safety is now automatically detected when PHP-CPP is installed
Diffstat (limited to 'config')
-rw-r--r-- | config/config.cpp | 28 |
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; +} + |