summaryrefslogtreecommitdiffhomepage
path: root/auto/modules/php
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2020-03-04 15:24:27 +0300
committerValentin Bartenev <vbart@nginx.com>2020-03-04 15:24:27 +0300
commitafa2f86ecf3ff99b598b14b3448c056b914cd32a (patch)
treec893f2f55011a1645ca668f38968845e2e1b8faf /auto/modules/php
parent75cb2a947d7194c9ef69f9e1b9dedaae2cf1905f (diff)
downloadunit-afa2f86ecf3ff99b598b14b3448c056b914cd32a.tar.gz
unit-afa2f86ecf3ff99b598b14b3448c056b914cd32a.tar.bz2
PHP: added ZTS indication to ./configure output.
Diffstat (limited to '')
-rw-r--r--auto/modules/php19
1 files changed, 19 insertions, 0 deletions
diff --git a/auto/modules/php b/auto/modules/php
index 014bb3e7..e2e5498a 100644
--- a/auto/modules/php
+++ b/auto/modules/php
@@ -158,6 +158,25 @@ if [ $nxt_found = no ]; then
fi
+nxt_feature="PHP Zend Thread Safety"
+nxt_feature_name=""
+nxt_feature_run=no
+nxt_feature_incs="${NXT_PHP_INCLUDE}"
+nxt_feature_libs="${NXT_PHP_LIB} ${NXT_PHP_LDFLAGS}"
+nxt_feature_test="
+ #include <php.h>
+ #include <php_main.h>
+
+ int main() {
+ #ifndef ZTS
+ #error ZTS is not defined.
+ #endif
+ return 0;
+ }"
+
+. auto/feature
+
+
# Bug #71041 (https://bugs.php.net/bug.php?id=71041).
nxt_feature="PHP zend_signal_startup()"