summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/nxt_php_sapi.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/nxt_php_sapi.c b/src/nxt_php_sapi.c
index b7eb29d1..ca49b289 100644
--- a/src/nxt_php_sapi.c
+++ b/src/nxt_php_sapi.c
@@ -16,20 +16,20 @@
#include <nxt_unit_request.h>
-#if PHP_VERSION_ID >= 50400
+#if (PHP_VERSION_ID >= 50400)
#define NXT_HAVE_PHP_IGNORE_CWD 1
#endif
-#if PHP_VERSION_ID >= 70100
+#if (PHP_VERSION_ID >= 70100)
#define NXT_HAVE_PHP_LOG_MESSAGE_WITH_SYSLOG_TYPE 1
#else
#define NXT_HAVE_PHP_INTERRUPTS 1
#endif
-#if PHP_VERSION_ID >= 70000
+#if (PHP_VERSION_ID >= 70000)
#define NXT_PHP7 1
#endif
-#if PHP_VERSION_ID >= 80000
+#if (PHP_VERSION_ID >= 80000)
#define NXT_PHP8 1
#endif
@@ -73,7 +73,7 @@ typedef int (*nxt_php_disable_t)(char *p, size_t size);
typedef int (*nxt_php_disable_t)(char *p, uint TSRMLS_DC);
#endif
-#if PHP_VERSION_ID < 70200
+#if (PHP_VERSION_ID < 70200)
typedef void (*zif_handler)(INTERNAL_FUNCTION_PARAMETERS);
#endif
@@ -139,7 +139,7 @@ static int nxt_php_read_post(char *buffer, uint count_bytes TSRMLS_DC);
#ifdef NXT_PHP7
-#if PHP_VERSION_ID < 70200
+#if (PHP_VERSION_ID < 70200)
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_fastcgi_finish_request, 0, 0,
_IS_BOOL, NULL, 0)
#else
@@ -355,7 +355,7 @@ static nxt_php_target_t *nxt_php_targets;
static nxt_int_t nxt_php_last_target = -1;
static nxt_unit_ctx_t *nxt_php_unit_ctx;
-#if defined(ZTS) && PHP_VERSION_ID < 70400
+#if defined(ZTS) && (PHP_VERSION_ID < 70400)
static void ***tsrm_ls;
#endif
@@ -377,7 +377,7 @@ nxt_php_setup(nxt_task_t *task, nxt_process_t *process,
#ifdef ZTS
-#if PHP_VERSION_ID >= 70400
+#if (PHP_VERSION_ID >= 70400)
php_tsrm_startup();
#else
tsrm_startup(1, 1, 0, NULL);