aboutsummaryrefslogtreecommitdiffstats
path: root/community/php7/5025eb05bde83a0a51eb0668c45c240b366545bf.patch
diff options
context:
space:
mode:
authorAndy Postnikov <apostnikov@gmail.com>2019-04-04 23:47:31 +0300
committerAndy Postnikov <apostnikov@gmail.com>2019-04-05 01:12:42 +0300
commit9ab658975164fba3a87c84f81da05828ac2815f4 (patch)
tree17b226d42479ec2ac4f1a3433d4c43f0bf9b3743 /community/php7/5025eb05bde83a0a51eb0668c45c240b366545bf.patch
parent7d2b5f88887142d4ba854702961c89b3a409a0c6 (diff)
downloadaports-9ab658975164fba3a87c84f81da05828ac2815f4.tar.bz2
aports-9ab658975164fba3a87c84f81da05828ac2815f4.tar.xz
community/php7: security upgrade to 7.2.17
Diffstat (limited to 'community/php7/5025eb05bde83a0a51eb0668c45c240b366545bf.patch')
-rw-r--r--community/php7/5025eb05bde83a0a51eb0668c45c240b366545bf.patch37
1 files changed, 0 insertions, 37 deletions
diff --git a/community/php7/5025eb05bde83a0a51eb0668c45c240b366545bf.patch b/community/php7/5025eb05bde83a0a51eb0668c45c240b366545bf.patch
deleted file mode 100644
index b95677c12e..0000000000
--- a/community/php7/5025eb05bde83a0a51eb0668c45c240b366545bf.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From 5025eb05bde83a0a51eb0668c45c240b366545bf Mon Sep 17 00:00:00 2001
-From: Jay Satiro <raysatiro@yahoo.com>
-Date: Fri, 1 Mar 2019 01:37:00 -0500
-Subject: [PATCH] curl_error: return an empty string if no error occurred
-
-CURLOPT_ERRORBUFFER doc says "Do not rely on the contents of the
-buffer unless an error code was returned." [1]
-
-Prior to this change the error buffer was returned even if no error had
-occurred, and that buffer may contain incorrect information in such a
-case. [2]
-
-[1]: https://curl.haxx.se/libcurl/c/CURLOPT_ERRORBUFFER.html
-[2]: https://github.com/curl/curl/issues/3629
----
- ext/curl/interface.c | 8 ++++++--
- 1 file changed, 6 insertions(+), 2 deletions(-)
-
-diff --git a/ext/curl/interface.c b/ext/curl/interface.c
-index 3af7ec12e23c..a252bb3a219d 100644
---- a/ext/curl/interface.c
-+++ b/ext/curl/interface.c
-@@ -3310,8 +3310,12 @@ PHP_FUNCTION(curl_error)
- RETURN_FALSE;
- }
-
-- ch->err.str[CURL_ERROR_SIZE] = 0;
-- RETURN_STRING(ch->err.str);
-+ if (ch->err.no) {
-+ ch->err.str[CURL_ERROR_SIZE] = 0;
-+ RETURN_STRING(ch->err.str);
-+ } else {
-+ RETURN_EMPTY_STRING();
-+ }
- }
- /* }}} */
-