Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:117973 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 3813 invoked from network); 17 Jun 2022 08:30:34 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 17 Jun 2022 08:30:34 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 10FE31804AF for ; Fri, 17 Jun 2022 03:18:46 -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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (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, 17 Jun 2022 03:18:45 -0700 (PDT) Received: by mail-wr1-f45.google.com with SMTP id v14so5154317wra.5 for ; Fri, 17 Jun 2022 03:18:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=craigfrancis.co.uk; s=default; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=pEkAg3bqhqSOVIctvv/bkFURbh0EcmmY4dwDd4zxxJo=; b=TN+4oO2a8Mi0reGGHMMIbJIc4YHg6PgqiD2bfO3+Qy0kgG5crx1E5v4Lc49WJA332o +oz937mBfO2GihTQ2MHu7dVcNFYtsawiJfl0phoMbRU7o722f7DwEt8qaOzx3IK3Qe93 pZMKnbbeeJpw3dApPDA19GwRsAtcC94GMIgjg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=pEkAg3bqhqSOVIctvv/bkFURbh0EcmmY4dwDd4zxxJo=; b=wf7vObEApdBuMnemrmDJrgPqe5mttucdfi+yBhpvcdZVLkFjLRszk2wa606jQuOAd+ Uaac7myyDgP79jNNGW2shu6dxWEs7+PsI1AgUcaJsl7WLTQb5RP0cmmcG2A3ImJKRIqO wmbsuZMxx4MzbYbsz8komrD7RwBnS4TNIdLL3Vew4eo1sjR1/kXIAjRzCreVs9n+pjcV fUhFM40n/HgcatAR81J3yE6CkqZOB2GKqJ3/eGV9/rdKFbRcE5ig545Nn5HouH/1Yikv lKMreZd9M5jCD4k2m2W7XLinX05Jkp0ecSyUpCifmb7Gk9x3gyoKW1Hr9COv9CN3LP+b hEVg== X-Gm-Message-State: AJIora80t+1enhVH+Dxemlq1wPE+V4ro7RcCZvCFJ/nGEoCOVtO9tP5y 0ePbwWDM3xR2TuBuCdJ5f8yC3w== X-Google-Smtp-Source: AGRyM1stwQJkgXiJiDTFWP0kt3EbKpG24ushGbbijJltTIyJNVL501GD9buJcjFtP3O102WLeEWSwA== X-Received: by 2002:a5d:6484:0:b0:219:eb95:3502 with SMTP id o4-20020a5d6484000000b00219eb953502mr8584674wri.692.1655461123859; Fri, 17 Jun 2022 03:18:43 -0700 (PDT) Received: from smtpclient.apple ([94.173.138.98]) by smtp.gmail.com with ESMTPSA id b9-20020adfe309000000b0020d0c9c95d3sm4434605wrj.77.2022.06.17.03.18.42 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Jun 2022 03:18:43 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.100.31\)) In-Reply-To: Date: Fri, 17 Jun 2022 11:18:42 +0100 Cc: Pierrick Charron , Larry Garfield , php internals Content-Transfer-Encoding: quoted-printable Message-ID: <8C82AFCA-710B-4F8F-AA25-87FA4C9A6D73@craigfrancis.co.uk> References: To: Lynn X-Mailer: Apple Mail (2.3696.100.31) Subject: Re: [PHP-DEV] Discussion about new Curl URL API and ext/curl improvements From: craig@craigfrancis.co.uk (Craig Francis) On 17 Jun 2022, at 09:27, Lynn wrote: > ... That said, we should avoid having: cURL procedural + cURL = procedural in objects + cURL OOP. Having 2 different object based = libraries to do the same thing PHP is confusing and will just end up in = way too many Stack Overflow questions. >=20 > Perhaps it is best to split this into 2 separate RFCs? tbh, I'd worry the OOP version would need a fair amount of discussion, = and experimentation... e.g. what the methods/parameters should be, = deciding how errors/oddities are handled (where exceptions should be = used, can NULL be returned (aka the 9.0 grenade), or other fancy = approaches like monads?), and how `curl_multi_*` functionality would = work. Could the OOP work be done separately, maybe starting in userland, so = those decisions could be made... and in the mean time, ext/curl gets a = quick update to expose this new URL API in the procedural style (keeping = consistency, and keeping it as a thin wrapper for now)? Craig