Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:122371 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 F138E1ACEBF for ; Wed, 14 Feb 2024 18:48:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1707936489; bh=Ykf6LPAyCjJXsu1mHX6pYV3IkiSOyB3X0qdugwuC5Zk=; h=From:Date:Subject:To:From; b=Lk64hYLB/D1oLSZrdJvPGWvbLOMt5fMzakfjiQhDoW/Zy6xsmT4HxUTwoRZHn5Ud+ s7SkP8HqamGhCZPyvPRJWlabJB8F5stpXT+xzrrEUr15xnuJaG1gxscCnnYSgYskno ErtLOtIMlxu/4Z02FUv6HjZjMGjuAC7qg6uLjSWSxLMdq9MWs4mu31LmSbkQ53QAzy KMpCLk8GswcphNUy3ZLnvIsw0UNW6NO4bBeBPkX3ENEqc6vTsCKKc8nSAGgbeY02ZY XXy9tcE7UP1dlnYOElvmuMXr+Fi+dHaXbUDj9Sc3gBQN0yNjayzucfJgrYseQ5rU42 pxfasnwtStEvg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id AE37B180074 for ; Wed, 14 Feb 2024 10:48:08 -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=4.0 required=5.0 tests=BAYES_50,DMARC_MISSING, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_SOFTFAIL, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (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 10:48:08 -0800 (PST) Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-a3832ef7726so3192166b.0 for ; Wed, 14 Feb 2024 10:48:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707936485; x=1708541285; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ngM1E+rexuOVQmNqPBVLtMc92nBYHG0kU2e7HU1kpvY=; b=ODAQrEp7rvT0HkBCVtSNnqjQY/E2YY2wEXXeCYEbKKz+f1u0FlImlV28Z2UJZPMo27 MfXmU69NHbeE5R7j4JRSUbuF2jdJgNWIcnYLfNVy8kFBVg+M9cy1Jf8azm5DMjtgyzdO 4IKD4JpsO66znAjOeOQHrF19tumX/UzH55GPCCTl6serNnBu0c50xAJzdbFIsXTqRDy6 uoTVr8MFoQmU7/e5L3Mu+Rt6YwbqUFziWr4s9erogVKcKEzM1YwZqJ3fUUapevXFGk9f 1MWJiG3Nj20mIzxL4Ut0m9ZDq2FfobzrvMMDpvYHQwjm0x2i1CRG97NtXmHl+RjfT9PF EPKQ== X-Gm-Message-State: AOJu0YyF9GAQjQeYwtfjNpXvuet5QWZ69Bvby2Vo5d5Mex7fF3Qwg/46 cfMkxi+gpcHs2aDB0uaCMEMc03o/kL/K7dp4Bk9OVqT4RQGmzVj8uyxHlUBNTRVOMOcMQpcWcHv oi9rfH6WxenePXFGAN1XKOhcZjwwynECHDIm5Pg7odyW+veVvw/k= X-Google-Smtp-Source: AGHT+IF5RzynuslvWTPKut9tacIhmC76GGxV4iBg1Rbrf5VuLPV7BaGzLGKaEIUxOzVjCL8G/pB0hOuCk02huoHJKP4= X-Received: by 2002:a17:906:ac7:b0:a3d:48d0:d518 with SMTP id z7-20020a1709060ac700b00a3d48d0d518mr1836758ejf.53.1707936485276; Wed, 14 Feb 2024 10:48:05 -0800 (PST) MIME-Version: 1.0 Date: Wed, 14 Feb 2024 11:47:54 -0700 Message-ID: Subject: [RFC] OOP API for cURL extension To: PHP internals Content-Type: multipart/alternative; boundary="000000000000810d0106115bf3f0" From: pollita@php.net (Sara Golemon) --000000000000810d0106115bf3f0 Content-Type: text/plain; charset="UTF-8" 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 --000000000000810d0106115bf3f0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Good afternoon folks, I'd like to open discussion on a= dding OOP APIs to the cURL extension.
https://wiki.php.net/rfc/curl-oop

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

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

-Sara
--000000000000810d0106115bf3f0--