[packages/php/PHP_8_2] Up to 8.2.22

arekm arekm at pld-linux.org
Tue Aug 6 08:38:15 CEST 2024


commit 514e8844d4250f63a2a200794b139962f570771f
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Tue Aug 6 08:37:58 2024 +0200

    Up to 8.2.22

 curl.patch | 27 +++++++++++++++++++++++++++
 php.spec   |  7 +++++--
 2 files changed, 32 insertions(+), 2 deletions(-)
---
diff --git a/php.spec b/php.spec
index 4fef0fd..dea62f9 100644
--- a/php.spec
+++ b/php.spec
@@ -150,7 +150,7 @@ Summary(pt_BR.UTF-8):	A linguagem de script PHP
 Summary(ru.UTF-8):	PHP - язык препроцессирования HTML-файлов, выполняемый на сервере
 Summary(uk.UTF-8):	PHP - мова препроцесування HTML-файлів, виконувана на сервері
 Name:		%{orgname}%{php_suffix}
-Version:	8.2.21
+Version:	8.2.22
 Release:	%{rel}
 Epoch:		1
 # All files licensed under PHP version 3.01, except
@@ -159,7 +159,7 @@ Epoch:		1
 License:	PHP 3.01 and Zend and BSD
 Group:		Libraries
 Source0:	https://www.php.net/distributions/%{orgname}-%{version}.tar.xz
-# Source0-md5:	87194595860a739f2cdaea43c12d2495
+# Source0-md5:	9b5dcc229ef6e8fd186d1237d85874cc
 #Source0:	https://downloads.php.net/~pierrick/php-%{version}%{subver}.tar.xz
 Source1:	opcache.ini
 Source2:	%{orgname}-mod_php.conf
@@ -182,6 +182,8 @@ Patch5:		openssl.patch
 # https://github.com/php/php-src/issues/9910
 Patch6:		opcache-nokill-perm.patch
 Patch7:		%{orgname}-sapi-ini-file.patch
+Patch8:		curl.patch
+
 Patch10:	%{orgname}-ini.patch
 Patch11:	embed.patch
 Patch14:	%{orgname}-no_pear_install.patch
@@ -1880,6 +1882,7 @@ cp -p php.ini-production php.ini
 #%patch5 -p1 resolved upstream?
 %patch6 -p1
 %patch7 -p1 -b .sapi-ini-file
+%patch8 -p1
 %patch10 -p1 -b .ini
 %patch14 -p1
 %patch18 -p1
diff --git a/curl.patch b/curl.patch
new file mode 100644
index 0000000..5261f3a
--- /dev/null
+++ b/curl.patch
@@ -0,0 +1,27 @@
+commit efd00b8ff05cb78ecb0351b96cce7780bcb72a2a
+Author: David Carlier <devnexen at gmail.com>
+Date:   Tue Jul 16 19:55:04 2024 +0100
+
+    ext/curl: curl_error using curl_easy_strerror if CURLOPT_ERRORBUFFER
+    
+    did not fill the error buffer.
+    
+    close GH-14984
+
+diff --git a/ext/curl/interface.c b/ext/curl/interface.c
+index 707f4e0a6f..4884ddc822 100644
+--- a/ext/curl/interface.c
++++ b/ext/curl/interface.c
+@@ -2764,7 +2764,11 @@ PHP_FUNCTION(curl_error)
+ 
+ 	if (ch->err.no) {
+ 		ch->err.str[CURL_ERROR_SIZE] = 0;
+-		RETURN_STRING(ch->err.str);
++		if (strlen(ch->err.str) > 0) {
++			RETURN_STRING(ch->err.str);
++		} else {
++			RETURN_STRING(curl_easy_strerror(ch->err.no));
++		}
+ 	} else {
+ 		RETURN_EMPTY_STRING();
+ 	}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php.git/commitdiff/514e8844d4250f63a2a200794b139962f570771f



More information about the pld-cvs-commit mailing list