Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125777 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 E02CE1A00BD for ; Wed, 9 Oct 2024 20:16:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1728505145; bh=B8tMUCQVQeVnwwIkqn8H/Nge9tyyiLbmttz/0Cwa6L0=; h=Reply-To:From:Date:Subject:To:From; b=O954QdhInx52bAG1JpabcbDAIXVWoxsL12CzqSr0u8GMNkJSTK9TsuiOMv8f+w+br R9EAWq3adbWnMosFPngqywQB8Go9C7XeaRx6icgGTpU1euh6B4N2j+rlZz5tl0KIQL 2S28uqEr0p9H5DF8tlaUGmHqgb6d7Jaj6GGRi/SbbLKEot6GbeR4KiUZJ3DlChFa63 9d+wXeqanPV87qGYr8Y24Ktm4qVDnurGSTGfuxTeMJRuKZdsmhnyv1YbIKChQK+UCo lIX8h62TpveujPxofUYKeuUfK4cS9NCMtaC+atjfwc+zpyQM0Ft38xQfWRtRJko0V/ mJMvF4yCpdeUQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 6F8B918004F for ; Wed, 9 Oct 2024 20:19:04 +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=1.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, FREEMAIL_REPLYTO,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-il1-f173.google.com (mail-il1-f173.google.com [209.85.166.173]) (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 ; Wed, 9 Oct 2024 20:19:00 +0000 (UTC) Received: by mail-il1-f173.google.com with SMTP id e9e14a558f8ab-3a3a03399fbso1269805ab.0 for ; Wed, 09 Oct 2024 13:16:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728505003; x=1729109803; darn=lists.php.net; h=to:subject:message-id:date:from:reply-to:mime-version:from:to:cc :subject:date:message-id:reply-to; bh=B8tMUCQVQeVnwwIkqn8H/Nge9tyyiLbmttz/0Cwa6L0=; b=M9DSaaG5wqDwf7UGkaO4QCHTkPpXLPdE7jVAKaBW1JAKh3EyAhXdCHV8bAABzddXgO z3anGefzOQVWGM8n/7nwUVGPVTl8wGbab1qVOBRcHOvAK5JsFzmJJcbN9pF7VuY3Y90K KJEpcfe4VYh6b+6/V26jVtp194nXeRzeEWKYiP1odtRtsscZ2QwHHH7FtzP7RLxiY16R kok8neDU6lSb/wUR+WDAjzYxcygGcVj3VcbsIOoIc8HwRLANHcjWBaqzSCh8YWHZmZBW r7VlDqe6L9vsPOOj7a0Sqiu9JpwqsvrfsR5bdsw5YjMhrdIbQ94uHeg/gyk90oxRBA6C m3sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728505003; x=1729109803; h=to:subject:message-id:date:from:reply-to:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=B8tMUCQVQeVnwwIkqn8H/Nge9tyyiLbmttz/0Cwa6L0=; b=jaPD7daIH0Vw8uQAjuBTV+yIRW+DZ9/cUGlXcXeKbJzFdDU4l79s8UTwB+ZYUxEW7y bKyomD+GsddEswEheneMi2HYr7AmWbZABbqnI9d7c02PNIs3kFV+G+H9R2hMoxhvjsJ6 tYdZW+Q3RbBNJr0EbevoaTbV+qQ59OlMbDpYZIJDGfTRGkLKtm7ArdZPuCp+SAuSwN8W g4cFcww8M+4Q7dPDPgnHNc3K+zW311wLIPjxQ+CcmtlPjKKtIjLcoz6fEzj92hq0lbc1 MkwAJIPjJvrNYlaG3DPoKqRlJy/+CpBQGF/xkrUmxpzzDtyFq3JNNC9lAfIqi+FUp7Sa tUhg== X-Gm-Message-State: AOJu0YyN9bdb8X3C9SDi7LuBybNXZhHJH7lsiao/YPMHGFfdGcO3zIdS cfDA4Thj4rCDTUIXkDIjVeXSLos7ZMT0kPFCM2vGSWuSoVxlbE7iJNte67FoJ3OD1PFc8N4rlaR EVt8sy1ayiLeaDQNVHpXA++8lHZx+dlmI X-Google-Smtp-Source: AGHT+IFnaFiAXuB+b7TZfOIlyaseNbmPtf1pmN0flIrwckDS6CbO73ojczN5er0MSu/cqturapl0zNfRu206HIXrcWY= X-Received: by 2002:a05:6e02:58a:b0:3a3:a5c5:3915 with SMTP id e9e14a558f8ab-3a3a5c53af9mr12225955ab.16.1728505002667; Wed, 09 Oct 2024 13:16:42 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Reply-To: erictnorris@gmail.com Date: Wed, 9 Oct 2024 16:16:26 -0400 Message-ID: Subject: [PHP-DEV] [RFC] [Discussion] Persistent CurlShareHandle objects To: PHP internals Content-Type: text/plain; charset="UTF-8" From: eric.t.norris@gmail.com (Eric Norris) Hello all, After receiving some feedback about https://github.com/php/php-src/pull/15603, I'm formally proposing an RFC to add persistent curl share handles here: https://wiki.php.net/rfc/curl_share_persistence Thanks to those who have provided feedback so far! Of note: the implementation introduces a global variable to the curl extension via ZEND_BEGIN_MODULE_GLOBALS; this appears preferred over EG(persistent_list). Should the implementation stick with the module global, or should it go back to EG(persistent_list) until we've created a formal non-resource API (in another RFC)? I'd like to keep the future of persistent resources out of scope for the decision on whether to add curl share handle persistence to PHP, but it is worth deciding what form the persistence takes *for now*.