[PHP-WEBMASTER] [web-php] master: Fix curl example in PHP 8.5 release page (#1638)

[email protected] (Tim Düsterhus via GitHub)
Newsgroups php.webmaster
Message-ID <[email protected]>
Author: Tim Düsterhus (TimWolla)
Committer: GitHub (web-flow)
Pusher: saundefined
Date: 2025-11-20T19:02:31+03:00

Commit: https://github.com/php/web-php/commit/30cd2bcd48c07a28570b36624087276b5fae71db
Raw diff: https://github.com/php/web-php/commit/30cd2bcd48c07a28570b36624087276b5fae71db.diff

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

Changed paths:
  M  releases/8.5/release.inc


Diff:

diff --git a/releases/8.5/release.inc b/releases/8.5/release.inc
index 79578488da..650ad6d05e 100644
--- a/releases/8.5/release.inc
+++ b/releases/8.5/release.inc
@@ -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);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.