Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:122379 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 6BEF31AD9EF for ; Thu, 15 Feb 2024 07:39:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1707982764; bh=6yX2I44RPBNmDDUBmlXM+Vru889XXP85JzJsaLUQT9w=; h=References:In-Reply-To:From:Date:Subject:To:From; b=DoiXDhefI+cLda6IiNzFKR0xjTMfMnm4usPzD9qFZyZxlOcjEoCFO5KzVJjcXvIpT cSHbIWpGG82TFivmqqoV8Smgt0gg053mB3rBYMdVlqFaJuibVkhk5MA2cjgfSJ+IIz m52ituovjv+kBC8OC3XkjSaLRXuuxZTlITqlq+PHv22Y1vT/iZhC8YKzuVatQ35XRj KMta7/7uOUWj/gSZAFMUJboZ2kS5y8/5/sFp/PjIFSAOvuAT1Wk0RjhzZwNWSx2InB 3bQS/G5ESNOUOWTPQKQsCcjSfjY0hd4cGxsfS6Y4w6LKVyHY5i1OSPamVgwdmyHty2 scrEKNw44j0Rw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 60C7A1824E1 for ; Wed, 14 Feb 2024 23:39:23 -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.8 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS, FREEMAIL_ENVFROM_END_DIGIT,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: <6562680@gmail.com> Received: from mail-oi1-f182.google.com (mail-oi1-f182.google.com [209.85.167.182]) (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:39:22 -0800 (PST) Received: by mail-oi1-f182.google.com with SMTP id 5614622812f47-3c134813841so226886b6e.0 for ; Wed, 14 Feb 2024 23:39:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707982761; x=1708587561; darn=lists.php.net; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=6yX2I44RPBNmDDUBmlXM+Vru889XXP85JzJsaLUQT9w=; b=GCJRQrBbfGOyJ6c0cZnWK0iwPwiWHbgYqPuIQL+ClvoY/0C0BuDy0oGVqPu45xYYqh vlXHbyZJd7ICTBvpqCskkXSR4y2ip/NHlLhwOs6kSKG4uJFlAoSiPoyiIuV+ymVCujsi nIf8SKz3q5KUXxPj1rdkRvHY+kW+5U1hHlQiAtdQkOkgjX8wVT/TZZb52PMXBmUGlcvQ YEJsWLCCnLkJraNOSacLx2Png3njpZOd4qcpoUlDtYtgYGEzLSc9Vksbh4QeeBGSAx+F bIDveVO5yOqVAD6v8p/VQmp05cBOBJPR9W8LHvU/uI6NnIlgt8bJWzVdjXhPCrNefAgc FQDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707982761; x=1708587561; h=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=6yX2I44RPBNmDDUBmlXM+Vru889XXP85JzJsaLUQT9w=; b=xQ86FL8rSeOHmmV3jP+MeZ92Zg0stZ6VzEq5CEzulFlGsFySN9RvMbdMkWVhv23wlU AqquWqA7sDtgqb1lMRGw2MhTipJDpmZvTcK572w5c5HD9r1qZsEpd/BxUC+XMSJvx0Xe jOCB8YmXB17l+bjKe+VvF2+1v1IOg6+QAz8VObwo2oIiOU1/kr3mTMGx4oRFYRviTjv4 GA3M79tKfvjN8mMmKK2r8ExtT5yCFqml+HE5sqUTA8AGG72uQpQj9R77a7DCLS+5itDw qMJbYIRA3uM7JrX11J70vD/fDE0/yhmM+zX/ySJkyNbxomIrw997/lN55efi4evt8VsO 5Frw== X-Forwarded-Encrypted: i=1; AJvYcCWpKT0j8aOkucgNrWSvZYk3OUSm8HuFJeDY1/FtCZ9KoyM5ZhLK5O/I+6zIN0sZ0JjO4CT43/ow2GUmW6YQXWw1DiWqZnLu2g== X-Gm-Message-State: AOJu0Yy4A2W9v4oI2Tij3SR11S09wok29ZLa3O3pM+26Q8AIrmgHeD53 MGg34BxTsLNjmfA5MMkbbWO/MzcNchHJk6aoIGrkdK09DIlNa1M7yauCHk+tTrpc6HqWdWcI6jM 9HvKrm3Tvxp2sMRdCPMfRhlXhMdOLeRACcA7jPQ== X-Google-Smtp-Source: AGHT+IHZFnGqJ4XVUS7Ps9/EWsZdp4BNnw6Zk1elbKrNANXu1TCtvI7wBiCNkBf0jIv/TM61Ihvvx5FGpyGuYv0aG+M= X-Received: by 2002:a05:6808:199e:b0:3c1:3862:28c8 with SMTP id bj30-20020a056808199e00b003c1386228c8mr284610oib.29.1707982761000; Wed, 14 Feb 2024 23:39:21 -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: =?UTF-8?B?Yg==?= <6562680@gmail.com> Date: Thu, 15 Feb 2024 10:38:45 +0300 Message-ID: Subject: Re: [RFC] OOP API for cURL extension To: Sara Golemon , internals@lists.php.net Content-Type: multipart/alternative; boundary="000000000000c08219061166b9ba" From: 6562680@gmail.com (=?UTF-8?B?0JPRgNC40LPQvtGA0LjQuSBTZW5pb3IgUEhQIC8g0KDQsNC30YDQsNCx0L7RgtGH0LjQuiBXZQ==?==?UTF-8?B?Yg==?=) --000000000000c08219061166b9ba Content-Type: text/plain; charset="UTF-8" Working with remote servers is a little bit harder than just catching the exception. Just implement OOP stuff gives no benefit except "do not read the docs, but use IDE". Usually count of curl options is so big that it wont help. And also, there's multicurl too. There's batch calling with limit too. There's errors of different types. I mean curl errors on create, curl errors on execute, http errors (network), response errors (invalid data, misformatted data), and api errors, that could be sent even with 200 code. How try/catch will solve? Easy solution, too many discussion points. --000000000000c08219061166b9ba Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Working with remote servers is a little bit ha= rder than just catching the exception.

Just implement OOP stuff gives no b= enefit except "do not read the docs, but use IDE". Usually count = of curl options is so big that it wont help.

And also, there's m= ulticurl too.
There's batch calling with limit too.
There's e= rrors of different types. I mean curl errors on create, curl errors on exec= ute, http errors (network), response errors (invalid data, misformatted dat= a), and api errors, that could be sent even with 200 code.

How try/c= atch will solve? Easy solution, too many discussion points.

=
--000000000000c08219061166b9ba--