Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124675 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 1A4F21A00B7 for ; Mon, 29 Jul 2024 11:09:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1722251477; bh=orIkIwpAZdmVtmZfUXUUBsQcGfD13PYIJE+6qQ0vFGo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=XbM+cFU8IYPc50AgYB4ZeViL3BZRQ6/JUZMEAsWyDY9DVZkzSYfXNTwGpH2HJDwwi vB238vGj83HocUtM7KhA6bGZ53Wr5RJyKMG6eR2BCsoEJL2nXy1Zuc8vPYlW/ig3hj rMvSZWDNSlT9veBPGMCOly70IogT1vNxaL8ZZu8L43DV4wzRA0pgYcTkS7c11+8LET 6zKCKZQ8Z5c8qhfEg/CMOgtTbWRdZ3rp6C85cztMJ8iTc2uLB/FO4l/7PWDdyZgQQR CJWjqKnymtmgLB4nycxIbdg0wYNsDARzgWj5Ah7jKjbBIWBT8YXg05OFKewRNABMf3 0lFB83EwOMrWw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 2A40F180054 for ; Mon, 29 Jul 2024 11:11:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from forward502d.mail.yandex.net (forward502d.mail.yandex.net [178.154.239.210]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 29 Jul 2024 11:11:15 +0000 (UTC) Received: from mail-nwsmtp-smtp-production-main-95.klg.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-95.klg.yp-c.yandex.net [IPv6:2a02:6b8:c42:8641:0:640:2742:0]) by forward502d.mail.yandex.net (Yandex) with ESMTPS id 1FBBD60A24 for ; Mon, 29 Jul 2024 14:09:36 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-95.klg.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id Y9SNWhToLqM0-y9toWM8t; Mon, 29 Jul 2024 14:09:35 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=php.watch; s=mail; t=1722251375; bh=orIkIwpAZdmVtmZfUXUUBsQcGfD13PYIJE+6qQ0vFGo=; h=To:Subject:Message-ID:References:Date:From:In-Reply-To:Cc; b=JhWijseXQ9+Or+WTqX/xAPYRQOb0pdHzBAoY+7Ehk5vd/TUUyCvmBVq6zYuZmOfZd y1bJ1Dj8DSo7o8CKdzlfn9kuj0WfsujJop7KCZub2BRnUW2waXB4ubywhL4QdfyQ8+ M1JleILTS0n8JF2rvHNsQFgzf4By5v5sQQ0Gl5Ks= Authentication-Results: mail-nwsmtp-smtp-production-main-95.klg.yp-c.yandex.net; dkim=pass header.i=@php.watch Received: by mail-ed1-f51.google.com with SMTP id 4fb4d7f45d1cf-5a309d1a788so4883827a12.3 for ; Mon, 29 Jul 2024 04:09:35 -0700 (PDT) X-Gm-Message-State: AOJu0YyhwTkHQ/skN2w/tD9vEWTsO/Bgut+WI5uZm+n0SjWYv2nWzDHl 8JuuGjODrQSRYTxORb6TeWu2LXNpjrX64oyhDULI6w1i84g0CN+80gebfEaeG/fZ3AobAYN1/S0 wWVBIJ1hjDdn56qkhnAWnRCZepiw= X-Google-Smtp-Source: AGHT+IE8uKxb+aD8cD7o7IhEZ3aKDQ2QRxvDDBA41v6NHRakmzZNEI+FQr4YDVg3BtaL4BQPvqLO4YJq3mWXmBv77Ko= X-Received: by 2002:a50:a411:0:b0:5a1:7d68:62d8 with SMTP id 4fb4d7f45d1cf-5b022c81f43mr4212760a12.38.1722251374690; Mon, 29 Jul 2024 04:09:34 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 29 Jul 2024 18:09:07 +0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PHP-DEV] Deprecate ext/curl `CURLOPT_DNS_USE_GLOBAL_CACHE`? To: "Christoph M. Becker" Cc: PHP internals Content-Type: text/plain; charset="UTF-8" From: ayesh@php.watch (Ayesh Karunaratne) > Actually deprecating the constant might require the RFC process, so > maybe it's best to make it a no-op for now (and to deprecate for PHP > 8.5/9.0 whatever is next). You are right I also think making this no-op is the best way for now. Notably, Symfony HttpClient uses the constant to **disable** this feature. So if we were to deprecate the constant, it will cause deprecation notices unnecessarily. > > But regardless of deprecation or no-op'ing, we should document the > behavior, and tell users about alternatives to accomplish the same goal. I will submit PRs to the php/doc-en about the outcome of this change. Thank you for weighing in on this. There is PR 5094[^1] from you that proposed to deprecate several `CURLE_` constants. If we were to no-op this constant, I'd like to propose a deprecation RFC with all those changes combined. Thank you, Ayesh. [^1]: https://github.com/php/php-src/pull/5094