Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:122378 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 999BE1AD9EF for ; Thu, 15 Feb 2024 07:27:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1707982037; bh=2jMM8VOexZc2SV6dqROOmN1Q7AyFbBHxbGP58+vDI7g=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ZYN5I1KDo/HiQLZsjzbIJwF+0dFDY3BUmwVc6jm/otvPv/UpGzSVS7DKfiDHaB8WH QvR8dSg9lCWhZvdrsjemn9SdWcxE5Klg09QJOXBOJNDWhv9JoHsqYU5/LIlNWMywh9 rggv9HTns5qqUqq13Fpr9YtaMPaKyJCSFzaq6tLl79/fcAiuxxypOJk0Vczwmrlj9B uZflMr9ZlwBz8zj/oxsUMZl8Mezm9ry2Sr7OLvmjNTzvFpE1bNYolSUD2892ELmrgD 61fLf5uouJnlQU2pQXyZOE1PVRWn/Mul4j/jKWdm11QzJxF2Vet4pbl+NVm/msXi6z G107uxCENf24Q== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A48B51824D4 for ; Wed, 14 Feb 2024 23:27:16 -0800 (PST) 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.2 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-il1-f177.google.com (mail-il1-f177.google.com [209.85.166.177]) (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, 14 Feb 2024 23:27:16 -0800 (PST) Received: by mail-il1-f177.google.com with SMTP id e9e14a558f8ab-363b37b6799so4030305ab.1 for ; Wed, 14 Feb 2024 23:27:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707982034; x=1708586834; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=iLDxv6srN8h5NjKTxqEnibs/tW1B4TxmbsBwbW0dzxk=; b=NjVwhdJlNmo37gtw3WFkXMsLyfRhVPuyX/A4TOW+NtULnrFLTNFl220jY/UlyAq2u2 +K9j9WeJIeNpfrqN+LJws+kDyUenyLk5R0SyRDdBQxd9cDw6S5wXADAHES6NWZBkJZ2N UU6ZM2CvRyDKrTafImDvLbMbUuN/9pghDxbzZ1WgqcxkoOrhRUmVkCULTOr6RK8K8iF4 Qxpynda1cWNB6Ds08TlKf/Ca5yTNQu57kbZZOoDmcJE005qVZRvX9p36biyoFGk9vPK4 KEfDgBfxCu48KVpkSzLQvrCUk807kiCzR1aNnc5hFa4lvtH+3/v/tr0baCD3fsEPUYqW Y1Vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707982034; x=1708586834; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=iLDxv6srN8h5NjKTxqEnibs/tW1B4TxmbsBwbW0dzxk=; b=q6IZll1odi4U4aWNqTahvy9LAPGbb/I8xWHnh2t1gude71VOL0+OWABkI8wTL2E59u pODLDUFF+zyktgv5Lyyib05UZShVeL9GJLz6WCqRgvfM2GUV876t72EWXsOMluyPLr/J FOjx7FtTT8nzJHQH/QrWgXjDDhNXi9fsVS6mkgNwjl19UxBkVj3htvTkbucrNioywIUf b+3mF4g8mHHSBbOKtv+GFsanO5y+uotMHlOjfEcL+VJgm2jWggUIQBY/XPq0ULYhi4M5 ic3NxlHCgP0mvBA9LtRcZUZswqMMrgUrCyq2qk+PDtdTlaZOlrBmK4DDuarxVAAqenKU pScA== X-Gm-Message-State: AOJu0YyYilIOBWVcZF6ON0Q4G/v03I14raEbyvLGtLWic0lLmN/aY090 sNlIBPBUgdyjQedSkhgEJ0thEzZsBB9ljEcuE0nd20FT7VGrPVDo7/V1j8PNlTqXVCbvu6rT0zE JqpfyI4lFbCUfg4G5KG+TeJx0neBnX98SuSQ= X-Google-Smtp-Source: AGHT+IH2XTAQDgBsBo6OQgl8afCP3oAReYxGKLjILOowqYc5X4XGlyQ5WdhX0TKhgcYJVGxol71AshcSFkZlOjmvRSU= X-Received: by 2002:a92:dacf:0:b0:363:7e19:6b85 with SMTP id o15-20020a92dacf000000b003637e196b85mr756449ilq.0.1707982034135; Wed, 14 Feb 2024 23:27:14 -0800 (PST) Mailing-List: contact internals-help@lists.php.net; run by mlmmj Precedence: bulk list-help: list-unsubscribe: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 15 Feb 2024 09:26:37 +0200 Message-ID: Subject: Re: [RFC] OOP API for cURL extension To: Sara Golemon Cc: PHP internals Content-Type: multipart/alternative; boundary="0000000000006d70600611668ea6" From: arvids.godjuks@gmail.com (Arvids Godjuks) --0000000000006d70600611668ea6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 15 Feb 2024 at 03:53, Sara Golemon wrote: > Good afternoon folks, I'd like to open discussion on adding OOP APIs to > the cURL extension. > https://wiki.php.net/rfc/curl-oop > > This has been a long standing bug-bear of mine, and I think its time has > come. > > try { > (new \CurlHandle)->setOpt(YOUR_VOTE, true)->exec(); > } catch (\CurlHandleException $ex) { > assert(false); // Why not?! > } > > -Sara > Good morning from this side of the globe Sara! :) "Hell... It's about damn time" (c) Tychus, StarCraft 2. The proposed API looks good to me and covers it all as far as I can tell. --=20 Arv=C4=ABds Godjuks +371 26 851 664 arvids.godjuks@gmail.com Telegram: @psihius https://t.me/psihius --0000000000006d70600611668ea6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Thu, 15 Feb 2024 at 03:53, Sara Go= lemon <pollita@php.net> wrote:=
Good afternoon folks, I'd like to open discussion on adding OOP APIs = to the cURL extension.
https://wiki.php.net/rfc/curl-oop

This has been a= long standing bug-bear of mine, and I think its time has come.

try= {
=C2=A0 (new \CurlHandle)->setOpt(YOUR_VOTE, true)->exec(= );
} catch (\CurlHandleException $ex) {
=C2=A0 assert(false); // Why = not?!
}

-Sara

Good morning from this side of the globe = Sara! :)

"Hell... It's about damn time" (c= ) Tychus, StarCraft 2.

The proposed API looks good= to me and covers it all as far as I can tell.

--

Arv=C4=ABds Godjuk= s
+371 26 851 664
Telegram: @psihiu= s=C2=A0https://t.me/psih= ius
--0000000000006d70600611668ea6--