Added parentheses for consistency.

Reported-by: Andrew Clayton <a.clayton@nginx.com>
Signed-off-by: Remi Collet <remi@remirepo.net>
Reviewed-by: Andrew Clayton <a.clayton@nginx.com>
Signed-off-by: Alejandro Colomar <alx@nginx.com>
This commit is contained in:
Remi Collet
2022-10-14 12:16:43 +02:00
committed by Alejandro Colomar
parent 48b6a7b311
commit db86dc0586

View File

@@ -16,20 +16,20 @@
#include <nxt_unit_request.h> #include <nxt_unit_request.h>
#if PHP_VERSION_ID >= 50400 #if (PHP_VERSION_ID >= 50400)
#define NXT_HAVE_PHP_IGNORE_CWD 1 #define NXT_HAVE_PHP_IGNORE_CWD 1
#endif #endif
#if PHP_VERSION_ID >= 70100 #if (PHP_VERSION_ID >= 70100)
#define NXT_HAVE_PHP_LOG_MESSAGE_WITH_SYSLOG_TYPE 1 #define NXT_HAVE_PHP_LOG_MESSAGE_WITH_SYSLOG_TYPE 1
#else #else
#define NXT_HAVE_PHP_INTERRUPTS 1 #define NXT_HAVE_PHP_INTERRUPTS 1
#endif #endif
#if PHP_VERSION_ID >= 70000 #if (PHP_VERSION_ID >= 70000)
#define NXT_PHP7 1 #define NXT_PHP7 1
#endif #endif
#if PHP_VERSION_ID >= 80000 #if (PHP_VERSION_ID >= 80000)
#define NXT_PHP8 1 #define NXT_PHP8 1
#endif #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); typedef int (*nxt_php_disable_t)(char *p, uint TSRMLS_DC);
#endif #endif
#if PHP_VERSION_ID < 70200 #if (PHP_VERSION_ID < 70200)
typedef void (*zif_handler)(INTERNAL_FUNCTION_PARAMETERS); typedef void (*zif_handler)(INTERNAL_FUNCTION_PARAMETERS);
#endif #endif
@@ -139,7 +139,7 @@ static int nxt_php_read_post(char *buffer, uint count_bytes TSRMLS_DC);
#ifdef NXT_PHP7 #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, ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_fastcgi_finish_request, 0, 0,
_IS_BOOL, NULL, 0) _IS_BOOL, NULL, 0)
#else #else
@@ -355,7 +355,7 @@ static nxt_php_target_t *nxt_php_targets;
static nxt_int_t nxt_php_last_target = -1; static nxt_int_t nxt_php_last_target = -1;
static nxt_unit_ctx_t *nxt_php_unit_ctx; 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; static void ***tsrm_ls;
#endif #endif
@@ -377,7 +377,7 @@ nxt_php_setup(nxt_task_t *task, nxt_process_t *process,
#ifdef ZTS #ifdef ZTS
#if PHP_VERSION_ID >= 70400 #if (PHP_VERSION_ID >= 70400)
php_tsrm_startup(); php_tsrm_startup();
#else #else
tsrm_startup(1, 1, 0, NULL); tsrm_startup(1, 1, 0, NULL);