Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:122397 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 68B201ADA70 for ; Fri, 16 Feb 2024 16:55:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1708099779; bh=qc7JfigN3nlkNFBiDjRGgDc6XHvmCfOlXq5XGw5E664=; h=Date:From:To:Subject:In-Reply-To:References:From; b=KfncEl608TdObM5WAsE5NzAxQOPV836pRUFDIuvjOKXY9RtWhxs2+9qfBgk8P4SQ4 6q7OaSKl01r08YVXDbFwgYRIbvNCdCsYmEU1lY37gBqAe7qmWa57vjYXjygHlYFqrv ygVjYHorQ/8GtFch28brNFvqcNY8fwL4QQgxJfPneAcSGElqx6fDmMmVAK7W7F+7AB OIhqhqhMCi/ywL4JXmk84K9P6zOf+Bu6uyKAP/mWWYoDqliNfsTwG43amA57LjeUNI tIBrBTzWAbpznzc48sxNpbskZu58Wp214/B9peceCOdpMFPRaUEmUS7muK8TA+vh0a nsxhXAXwthtsA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E8CDF184490 for ; Fri, 16 Feb 2024 08:09:37 -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.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, 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-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) (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 ; Fri, 16 Feb 2024 08:09:37 -0800 (PST) Received: by mail-ed1-f51.google.com with SMTP id 4fb4d7f45d1cf-563bb51c36eso2107846a12.2 for ; Fri, 16 Feb 2024 08:09:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708099774; x=1708704574; darn=lists.php.net; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:user-agent:subject:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=sCf9R+SlDqo3kOMPEb9RQaGTxNPoKGMhVsLulVRRcXU=; b=V4sH6v1ndA56r6WVU727zn2tO6ytOPYa9YpzWCW7vSPHzZGwBpojOgyXLxpnAK1I1s soVrefbL9favgxrxIo65/tZmHeji0VWmn+uxzuk399X3IhG4n1C2hrTztSeUUkxot/uk LYaYucAYkmknSjljHUgIoOYzSdPdx3p8UD5+vGsKVD2t5CcU0QZBIZiDnvPdAG6NIFrh GTiex9SQQYi//GzajK5yQhL0g+GGNtVTCm+O9UiKkM811qfPGJjM5MeQ4xs+mgP1D+Mx uNOPFrKOeQ0z/sv8WWxzK0PD+Iy5YzCG8+LYhTTQZ6ofhtc7Ani68n1ArRNj/+4tp0h1 HYbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708099774; x=1708704574; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:user-agent:subject:to:from:date:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=sCf9R+SlDqo3kOMPEb9RQaGTxNPoKGMhVsLulVRRcXU=; b=EuLRvw6E4UEbQlxfxTg5cNQUyzkWMhJATQSEicEOet92QyMNPxzq/C3ZYpLVQN2/FT tqYJ+tWE6h3LNS1mB0Y0Y8ycA52xfwdifypuqbZg5qYdXnO/DT+eub/UHjAzqgU8T4FK JZ++QU2dB4dtW8hqZK+T9Yv8zthORW7/e+hae5RtrscIBJHDqnLcsBINuudbsB+xe3Qu vJzuerW87wbmqrqOLeSR0wrtWZYydwiN4Eg1mizDBvkJEF43KmFhT1R8yAzX/x/e7qW/ YqerTwrTmRyEGmNcyQSkSB/oSBLajED3Jm5+Duteyy/EfnIKXqGrgX5i8jv126TiltRK 9cLA== X-Gm-Message-State: AOJu0Yz/X6/Hu7PfO/NaQQ7OSyhevfWQ+S0Z3oy3Y+mYLG7VPlTjSn4O kF7i8yyw+bXacpHm6d9+98GyyrIQqYOKlJkwz0Kc7wpeKjmNHYNUszNs5pel X-Google-Smtp-Source: AGHT+IGB++z148nCO+VY7h/LMYXLUW4aN6mgBgi1t5fSCVGo9ckP1Tlb3mWg7liM1PgxhKNst6T/gw== X-Received: by 2002:aa7:da0e:0:b0:55f:8c38:36a9 with SMTP id r14-20020aa7da0e000000b0055f8c3836a9mr3560202eds.42.1708099774175; Fri, 16 Feb 2024 08:09:34 -0800 (PST) Received: from [127.0.0.1] ([154.51.133.246]) by smtp.gmail.com with ESMTPSA id en16-20020a056402529000b0055fef53460bsm123484edb.0.2024.02.16.08.09.33 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 16 Feb 2024 08:09:33 -0800 (PST) Date: Fri, 16 Feb 2024 16:09:32 +0000 To: PHP internals Subject: [PHP-DEV] Re: [RFC] OOP API for cURL extension User-Agent: K-9 Mail for Android In-Reply-To: References: Message-ID: Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: rowan.collins@gmail.com (Rowan Tommins) On 15 February 2024 15:44:13 GMT, Sara Golemon wrote: >* CurlHandle::exec() mixed typing of return values=2E > Comment: Agreed=2E The `true` return value becomes meaningless in the >RETURNTRANSFER=3D=3Dfalse case=2E > Proposal: Update the RFC for CurlHandle::execute() to return ?string=2E Should we take this a step further, and remove CURLOPT_RETURNTRANSFER as a= valid option on the object completely? Instead of an overloaded exec() met= hod, provide: public function executeAndReturn(): string public function executeAndOutput(): void Perhaps the option could be accepted in the relevant setOpt methods, but i= ssue a warning that it has no effect=2E Since both the default for the option and the name of the method are chang= ing anyway, I don't think this significantly affects the migration effort f= or the tiny minority of cases where you actually want the direct output beh= aviour=2E Regards, --=20 Rowan Tommins [IMSoP]