summaryrefslogtreecommitdiffstats
path: root/0001-return-string-in-output-handler.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2025-10-10 08:36:49 +0200
committerRemi Collet <remi@php.net>2025-10-10 08:36:49 +0200
commitc9c87abe9a0bf7b045e989ce9e9fc16ac1cc97dc (patch)
tree1e046907478593a46bd1775feee2d959d4977852 /0001-return-string-in-output-handler.patch
parent9ccd57189357a54ccbd12a01734f933357620790 (diff)
update to 4.3.1HEADmaster
open https://github.com/m6w6/ext-http/issues/151 test suite hangs with old libcurl (EL-8) fix build with libcurl 7.61 (EL-8) using patch from https://github.com/m6w6/ext-http/pull/152
Diffstat (limited to '0001-return-string-in-output-handler.patch')
-rw-r--r--0001-return-string-in-output-handler.patch31
1 files changed, 0 insertions, 31 deletions
diff --git a/0001-return-string-in-output-handler.patch b/0001-return-string-in-output-handler.patch
deleted file mode 100644
index 717e603..0000000
--- a/0001-return-string-in-output-handler.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-From 36201dbbe628f2bc40cb1ed6c22f4486f3468b27 Mon Sep 17 00:00:00 2001
-From: Remi Collet <remi@remirepo.net>
-Date: Fri, 18 Jul 2025 07:19:36 +0200
-Subject: [PATCH] return string in output handler
-
-Returning a non-string result from user output handler is deprecated
-
-From https://wiki.php.net/rfc/deprecations_php_8_4
-
- A return value of true is treated like a context reset,
- which is identical to returning an empty string.
----
- src/php_http_env_response.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/php_http_env_response.c b/src/php_http_env_response.c
-index 3dba5b9..b44c58d 100644
---- a/src/php_http_env_response.c
-+++ b/src/php_http_env_response.c
-@@ -1165,7 +1165,7 @@ static PHP_METHOD(HttpEnvResponse, __invoke)
- } else {
- php_http_message_body_append(obj->message->body, ob_str, ob_len);
- }
-- RETURN_TRUE;
-+ RETURN_EMPTY_STRING();
- }
- }
-
---
-2.50.1
-