1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

Fix curl example in PHP 8.5 release page (#1638)

This commit is contained in:
Tim Düsterhus
2025-11-20 17:02:31 +01:00
committed by GitHub
parent a2d766b11f
commit 30cd2bcd48

View File

@@ -616,7 +616,7 @@ $sh = curl_share_init_persistent([
]);
$ch = curl_init('https://php.net/');
curl_setopt($ch1, CURLOPT_SHARE, $sh);
curl_setopt($ch, CURLOPT_SHARE, $sh);
// This may now reuse the connection from an earlier SAPI request
curl_exec($ch);