Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:118084 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 29228 invoked from network); 24 Jun 2022 12:38:19 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 24 Jun 2022 12:38:19 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id D208D1804D4 for ; Fri, 24 Jun 2022 07:28:20 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS29838 64.147.123.0/24 X-Spam-Virus: No X-Envelope-From: Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 24 Jun 2022 07:28:20 -0700 (PDT) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 05E2A3200786 for ; Fri, 24 Jun 2022 10:28:17 -0400 (EDT) Received: from imap50 ([10.202.2.100]) by compute1.internal (MEProxy); Fri, 24 Jun 2022 10:28:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1656080897; x= 1656167297; bh=BPkPDx0l/N3FY1hbXIrmB9hE1/1ELATeanItqp6e/Ko=; b=a +3UOhnZpM5KwZNdJ4Bik1unoJsVfSaVRpDP96ycJR2OUlDLVgM8hpxsBJoL5lSdH YZtCrXpDl7URjh8JcQttt59zniRrUbeVNMCfUoWKSFDPFiUnajLBIyOOKK8TZOJS QHAUwbH6G64TwqtaxY2Js7YiT4nOUmvdvEAVpRwZHqYJXaiQ+Fvgn6xqaZ2Nignr S1qTuVmyFr7WJ09NW19ORfnL7CcsLb6USwEj+Lw02eo+EDzyDd1vLA6E/G1TfhdK m1dYvu/zYVkQHUFXD1vsg2yZTQ7tECjDGGxQHEs8YvN9Gacq4Idj4Ie61xLbwuRs ypWeCQ77T+c5srkNe7W8A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1656080897; x=1656167297; bh=BPkPDx0l/N3FY1hbXIrmB9hE1/1E LATeanItqp6e/Ko=; b=osW0IyxZzCbTxcQ0iYGqjobhasEEEz53yxL9OxzvE9l2 PxLthtbCUvepca+KzOILGSTJlCzoIT3A2RItF/ryrwkCt2Vuy2sgw9bFTZ/K7Mx1 CNp8jP6R+NbSXuZ/pHvyOAcOjw9prf/P9Ef4CQcXvadO0fs//OVIEdQJGcdSGoZG /i8Xm+v27vIkh9MPbi0YyYoAVAsnD24N6xuV/Ln7a7JJaR4OZdbwGeCkDPKwyynH rXUc9VKkgZIonaaJHHD5YvlYPi/Ql8V+lDdYszjaxsxU9XjMRtkQba36ohmQJ0SB AEG4svpXq+9a2VVmI2QFhJ/A9bGyXxD37I3o2zyAAA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudefledgjeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreertdenucfhrhhomhepfdfnrghr rhihucfirghrfhhivghlugdfuceolhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtoh hmqeenucggtffrrghtthgvrhhnpeeglefgkeduiedvvdetffeujefftdfhjeeiveehgfff keduveektddvledvvdfffeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpehlrghrrhihsehgrghrfhhivghlughtvggthhdrtghomh X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 463CB1700077; Fri, 24 Jun 2022 10:28:17 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-713-g1f035dc716-fm-20220617.001-g1f035dc7 Mime-Version: 1.0 Message-ID: In-Reply-To: References: Date: Fri, 24 Jun 2022 09:27:45 -0500 To: "php internals" Content-Type: text/plain Subject: Re: [PHP-DEV] [RFC] [Under Discussion] New Curl URL API From: larry@garfieldtech.com ("Larry Garfield") On Fri, Jun 24, 2022, at 8:49 AM, Pierrick Charron wrote: > Hi all, and thanks Levi for your feedback, > > If you look at the first thread (Discussion about new Curl URL API and > ext/curl improvements) you'll see that this was my first approach. I even > proposed to "OOPify" the actual CurlHandle & co objects with "simple" > methods like $ch->setOpt(). Anyone who reads the actual API can see this is > the actual "philosophy" of the extension. It was designed (on purpose or > not) as a thin wrapper over curl. But lets focus on URL API only ! > > With previous thread answers, I was under the impression that I really was > the only one liking the approach of following the cURL api as much as > possible and leaving the more high level API to things like Guzzle & co > (for example by adding an Implementation of PSR-7 UriInterface using this > API) since all the others parts of the API are done this way. I think it's > important to have this new Curl URL API in 8.2 since it fixes security > issues and that's of course not ideal but I would rather have an > implementation that would not be my first choice, than not having it at all. > > What do you think ? I would love more people to give feedback on what they > are expecting, if they don't care if they prefer one approach or the other > and of course why ? I was thinking about doing a vote on this, but I'm not > sure it's a good idea. What do you all think ? > > Regards, > Pierrick The root question, I think, is who the consumer is for this RFC? Is the consumer PHP developers? Then it should be a good PHP API. Is the consumer the Guzzle team and everyone else just uses Guzzle and ignores Curl/CurlUrl? Then it should probably adhere as closely as feasible to Curl's API, awful as it is, and be documented out the wazoo. There likely isn't time for 8.2 to do the first option, but probably is for the second. --Larry Garfield