From f0118343cf7d61224924b4899d173b2877f14c91 Mon Sep 17 00:00:00 2001 From: matyhtf Date: Wed, 4 Dec 2024 17:21:23 +0800 Subject: [PATCH] Remove CURLOPT_BINARYTRANSFER opt, fix https://github.com/swoole/swoole-src/issues/5595 --- src/core/Curl/Handler.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/core/Curl/Handler.php b/src/core/Curl/Handler.php index e3adca5..3f921e0 100644 --- a/src/core/Curl/Handler.php +++ b/src/core/Curl/Handler.php @@ -483,10 +483,6 @@ private function setOption(int $opt, mixed $value): bool case CURLOPT_SSLVERSION: case CURLOPT_NOSIGNAL: case CURLOPT_FRESH_CONNECT: - /* - * From PHP 5.1.3, this option has no effect: the raw output will always be returned when CURLOPT_RETURNTRANSFER is used. - */ - case CURLOPT_BINARYTRANSFER: /* TODO */ case CURLOPT_DNS_USE_GLOBAL_CACHE: case CURLOPT_DNS_CACHE_TIMEOUT: case CURLOPT_STDERR: