note 128829 added to function.curl-close

From: Date: Thu, 24 Aug 2023 14:56:00 +0000
Subject: note 128829 added to function.curl-close
Groups: php.notes 
Request: Send a blank email to php-notes+get-220791@lists.php.net to get a copy of this message
Although the Note for this call says "Prior to PHP 8.0.0, this function was used to close the resource", I found that PHP 7.4.33 on CentOS is not closing the connection on curl_close. The workaround if you want to make sure the connection closes immediately after the request is to set the curl option to forbid reuse: curl_setopt($curl, CURLOPT_FORBID_REUSE, TRUE); ---- Server IP: 45.112.84.4 Probable Submitter: 45.91.157.134 (proxied: 67.248.213.36) ---- Manual Page -- https://php.net/manual/en/function.curl-close.php Edit -- https://main.php.net/note/edit/128829 Del: integrated -- https://main.php.net/note/delete/128829/integrated Del: useless -- https://main.php.net/note/delete/128829/useless Del: bad code -- https://main.php.net/note/delete/128829/bad+code Del: spam -- https://main.php.net/note/delete/128829/spam Del: non-english -- https://main.php.net/note/delete/128829/non-english Del: in docs -- https://main.php.net/note/delete/128829/in+docs Del: other reasons-- https://main.php.net/note/delete/128829 Reject -- https://main.php.net/note/reject/128829 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#220791) next »