Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125890 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 10DF41A00BD for ; Fri, 1 Nov 2024 19:00:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1730487752; bh=mqpy1PORxSgUKa/SSUbcoam8KM6BbwKMjMykQO0fuzs=; h=Date:To:From:Cc:Subject:In-Reply-To:References:From; b=U0g4GRcVQwvx8MaCW+jkOkzey2ulvy1PqKQ/idbjQX5wgphWxoJkSWk1GNhW8oIac +JEDNL3q41IuWwSOTOtZ7L1xDOYoCKqUDxx+wcMIOb1VuM1I4w3xfubITXhpaUD8DU I9dV6UfFexlmJjTOf/bYFqq7NbA87aG9Qk7IKQVwVMvOKR7LAOtbTmBcs9FO7c1FSK 6hAL0hPivuICWhwHBXPM+NzLkA9XRGuwT7PL6aZj+MJ72ehw9+QuJS3kdA0u8zQStM ygQ+0k7puNuN2kfEWQMQqqheoZmMT2bgK0qjRn10eOkGn/fjYDhOR/yQ9ZfG83rtn6 5tq5weZ0v4R+w== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9C49C180055 for ; Fri, 1 Nov 2024 19:02:30 +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,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-4317.proton.ch (mail-4317.proton.ch [185.70.43.17]) (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 ; Fri, 1 Nov 2024 19:02:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gpb.moe; s=protonmail2; t=1730487598; x=1730746798; bh=mqpy1PORxSgUKa/SSUbcoam8KM6BbwKMjMykQO0fuzs=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector:List-Unsubscribe:List-Unsubscribe-Post; b=wfXE860xqnfJSJAhF9F2+aY5kqExR9YDSD8vg43EUcicp8TUUsYWoxZ1hvYxXM4qg OXpiMonNqg5Sjk7eIDwxFfite1s7MnXpofjDOM+GAa0ezPdDxKeOmsSfJaG5emiuBO 0xhOkz4IFDI99k2cG1Z7ZI7xyEGMVts19t2bmijkVuthuKRbfx1MmE5Hhb2oZJHojA goMWbh7f9KhzRqtNMDK5ZujBIwV/Fzd7W0jig6Mwj50dkkPSpcXlB4m+mW4NdAaujp a3M1P3JOlC4E/WlXNkElcg1sTqm1bMjn3TvtT9Ff1NvIog4dzWD8bgan3InF6IQkb0 fTpWlssz4M4yA== Date: Fri, 01 Nov 2024 18:59:52 +0000 To: erictnorris@gmail.com Cc: PHP internals Subject: Re: [PHP-DEV] [RFC] [Discussion] Persistent CurlShareHandle objects Message-ID: In-Reply-To: References: Feedback-ID: 96993444:user:proton X-Pm-Message-ID: bb42f49e8078c4fddb9b877fa2f53588c863ecc9 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: internals@gpb.moe ("Gina P. Banyard") On Wednesday, 9 October 2024 at 21:16, Eric Norris wrote: > Hello all, >=20 > 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 >=20 > 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)? >=20 > 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. I have voted against the RFC as it lacks details and there seems to have be= en no analysis on what sort of issues this can cause. This has been pointed out by Tim already, and this should have been caught = earlier, but I don't know if it just me, but it seems your email kinda went= into some void and got unnoticed. Persistent handlers don't really fit PHP's model, and are practically untes= table from a PHPT test perspective as far as I know (at least I have never = seen any proper tests for the existing ones, but I am happy to be corrected= ). As such I am very reluctant to adding more of these things to the language,= especially when this seems to just have been hacked together quickly, we s= till have at least 7 months before feature freeze and I would prefer to act= ually be done properly. Especially that it is always easier to add new features than to deprecate a= nd remove bad ones (which is kinda backwards but not relevant to this discu= ssion). Best regards, Gina P. Banyard