From c407a157d3ad4e9ac79868e144fba85f8ff218a7 Mon Sep 17 00:00:00 2001 From: michalsn Date: Tue, 10 Sep 2019 14:30:45 +0200 Subject: [PATCH] Merge branch 'curl-debug-bug' of github.com:MGatner/CodeIgniter4 into feature/curl_debug_fix sign merge --- system/HTTP/CURLRequest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/system/HTTP/CURLRequest.php b/system/HTTP/CURLRequest.php index 86e7cc5c45bd..abeb300f941a 100644 --- a/system/HTTP/CURLRequest.php +++ b/system/HTTP/CURLRequest.php @@ -672,10 +672,10 @@ protected function setCURLOptions(array $curl_options = [], array $config = []) } // Debug - if (isset($config['debug'])) + if ($config['debug']) { - $curl_options[CURLOPT_VERBOSE] = $config['debug'] === false ? 0 : 1; - $curl_options[CURLOPT_STDERR] = is_string($config['debug']) ? fopen($config['debug'], 'w') : fopen('php://output', 'w+'); + $curl_options[CURLOPT_VERBOSE] = 1; + $curl_options[CURLOPT_STDERR] = is_string($config['debug']) ? fopen($config['debug'], 'a+') : fopen('php://output', 'w+'); } // Decode Content