summaryrefslogtreecommitdiffhomepage
path: root/auto/modules/php
diff options
context:
space:
mode:
authorKonstantin Pavlov <thresh@nginx.com>2022-12-15 08:17:39 -0800
committerKonstantin Pavlov <thresh@nginx.com>2022-12-15 08:17:39 -0800
commite22669f2728814aba82da14702d18bfa9685311e (patch)
treec9c9471dab359e8e33fca24c5d4f035ab5b278db /auto/modules/php
parenta1d28488f9df8e28ee25ea438c275b96b9afe5b6 (diff)
parent4409a10ff0bd6bb45fb88716bd383cd867958a8a (diff)
downloadunit-e22669f2728814aba82da14702d18bfa9685311e.tar.gz
unit-e22669f2728814aba82da14702d18bfa9685311e.tar.bz2
Merged with the default branch.
Diffstat (limited to 'auto/modules/php')
-rw-r--r--auto/modules/php12
1 files changed, 8 insertions, 4 deletions
diff --git a/auto/modules/php b/auto/modules/php
index e92a67cd..f0ecb709 100644
--- a/auto/modules/php
+++ b/auto/modules/php
@@ -131,7 +131,7 @@ nxt_feature_libs="${NXT_PHP_LIB} ${NXT_PHP_LDFLAGS}"
nxt_feature_test="
#include <php.h>
- int main() {
+ int main(void) {
printf(\"%s\", PHP_VERSION);
return 0;
}"
@@ -148,8 +148,12 @@ nxt_feature_test="
#include <php.h>
#include <php_main.h>
- int main() {
+ int main(void) {
+ #if (PHP_VERSION_ID < 80200)
php_module_startup(NULL, NULL, 0);
+ #else
+ php_module_startup(NULL, NULL);
+ #endif
return 0;
}"
@@ -172,7 +176,7 @@ nxt_feature_test="
#include <php.h>
#include <php_main.h>
- int main() {
+ int main(void) {
#ifndef ZTS
#error ZTS is not defined.
#endif
@@ -193,7 +197,7 @@ nxt_feature_test="
#include <php.h>
#include <php_main.h>
- int main() {
+ int main(void) {
zend_signal_startup();
return 0;
}"