diff --git a/reference/curl/constants_curl_setopt.xml b/reference/curl/constants_curl_setopt.xml
index 783ed8fa05b0..522e1207c2c8 100644
--- a/reference/curl/constants_curl_setopt.xml
+++ b/reference/curl/constants_curl_setopt.xml
@@ -338,7 +338,7 @@
As of PHP 8.0.0, curl_close is a no-op
and does not destroy the handle.
If cookies need to be written prior to the handle being automatically
- destroyed, call unset on the handle.
+ destroyed, run curl_setopt($ch, CURLOPT_COOKIELIST, "FLUSH");
.