diff options
author | Remi Collet <remi@remirepo.net> | 2020-08-14 07:29:16 +0200 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2020-08-14 07:29:16 +0200 |
commit | a0f34231e4ba2f18be9cbfdacae99e9e657e3574 (patch) | |
tree | 59b0d871f38aea05b2a97b9dd2f47d8b5b80b702 | |
parent | 48a9ed486b67233b07ee12749dd2b90d70aaac95 (diff) |
update to 1.19.0
drop patch merged upstream
-rw-r--r-- | 441.patch | 74 | ||||
-rw-r--r-- | unit-php.spec | 13 |
2 files changed, 7 insertions, 80 deletions
diff --git a/441.patch b/441.patch deleted file mode 100644 index 5a2adc7..0000000 --- a/441.patch +++ /dev/null @@ -1,74 +0,0 @@ -From cecd5e36a067dda5365f7a4439b72bc5a061400d Mon Sep 17 00:00:00 2001 -From: Remi Collet <remi@remirepo.net> -Date: Wed, 1 Jul 2020 08:01:13 +0200 -Subject: [PATCH] fix #440 API change in PHP 8.0.0alpha1 - ---- - src/nxt_php_sapi.c | 16 ++++++++++++++++ - 1 file changed, 16 insertions(+) - -diff --git a/src/nxt_php_sapi.c b/src/nxt_php_sapi.c -index 7ae8484d..8b611306 100644 ---- a/src/nxt_php_sapi.c -+++ b/src/nxt_php_sapi.c -@@ -28,6 +28,9 @@ - #if PHP_VERSION_ID >= 70000 - #define NXT_PHP7 1 - #endif -+#if PHP_VERSION_ID >= 80000 -+#define NXT_PHP8 1 -+#endif - - /* PHP 8 */ - #ifndef TSRMLS_CC -@@ -61,11 +64,15 @@ typedef struct { - } nxt_php_run_ctx_t; - - -+#ifdef NXT_PHP8 -+typedef int (*nxt_php_disable_t)(const char *p, size_t size); -+#else - #ifdef NXT_PHP7 - typedef int (*nxt_php_disable_t)(char *p, size_t size); - #else - typedef int (*nxt_php_disable_t)(char *p, uint TSRMLS_DC); - #endif -+#endif - - #if PHP_VERSION_ID < 70200 - typedef void (*zif_handler)(INTERNAL_FUNCTION_PARAMETERS); -@@ -105,11 +112,15 @@ nxt_inline void nxt_php_set_str(nxt_unit_request_info_t *req, const char *name, - static void nxt_php_set_cstr(nxt_unit_request_info_t *req, const char *name, - const char *str, uint32_t len, zval *track_vars_array TSRMLS_DC); - static void nxt_php_register_variables(zval *track_vars_array TSRMLS_DC); -+#ifdef NXT_PHP8 -+static void nxt_php_log_message(const char *message, int syslog_type_int); -+#else - #ifdef NXT_HAVE_PHP_LOG_MESSAGE_WITH_SYSLOG_TYPE - static void nxt_php_log_message(char *message, int syslog_type_int); - #else - static void nxt_php_log_message(char *message TSRMLS_DC); - #endif -+#endif - - #ifdef NXT_PHP7 - static size_t nxt_php_unbuffered_write(const char *str, -@@ -1269,6 +1280,10 @@ nxt_php_set_cstr(nxt_unit_request_info_t *req, const char *name, - } - - -+#ifdef NXT_PHP8 -+static void -+nxt_php_log_message(const char *message, int syslog_type_int) -+#else - #ifdef NXT_HAVE_PHP_LOG_MESSAGE_WITH_SYSLOG_TYPE - static void - nxt_php_log_message(char *message, int syslog_type_int) -@@ -1276,6 +1291,7 @@ nxt_php_log_message(char *message, int syslog_type_int) - static void - nxt_php_log_message(char *message TSRMLS_DC) - #endif -+#endif - { - nxt_log(nxt_php_task, NXT_LOG_NOTICE, "php message: %s", message); - } diff --git a/unit-php.spec b/unit-php.spec index 1265cb8..a15f060 100644 --- a/unit-php.spec +++ b/unit-php.spec @@ -9,7 +9,7 @@ %global gh_owner nginx %global project unit -%global gh_commit d3ca5fb47a52322b48737d21d55bf1d6d0aa446a +%global gh_commit ba445d31f17194be335fb8bf6295bceac991299d %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %undefine _debugsource_packages @@ -34,16 +34,14 @@ Requires: %{scl_prefix}php-embedded %endif Name: %{?scl_prefix}%{project}-php -Version: 1.18.0 -Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Version: 1.19.0 +Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} Summary: PHP module for NGINX Unit License: ASL 2.0 URL: https://unit.nginx.org/ Source0: https://github.com/%{gh_owner}/%{project}/archive/%{gh_commit}/%{project}-%{version}-%{gh_short}.tar.gz -Patch0: https://patch-diff.githubusercontent.com/raw/nginx/unit/pull/441.patch - BuildRequires: %{?dtsprefix}gcc BuildRequires: %{?scl_prefix}php-devel BuildRequires: %{?scl_prefix}php-embedded @@ -62,7 +60,6 @@ and NGINX unit %{version}. %prep %setup -qn %{project}-%{gh_commit} -%patch0 -p1 %build @@ -121,6 +118,10 @@ make %{modname}-install DESTDIR=%{buildroot} %changelog +* Fri Aug 14 2020 Remi Collet <remi@remirepo.net> - 1.19.0-1 +- update to 1.19.0 +- drop patch merged upstream + * Wed Aug 5 2020 Remi Collet <remi@remirepo.net> - 1.18.0-2 - rebuild for 8.0.0beta1 - add patch for PHP 8.0.0 from |