Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127806 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 lists.php.net (Postfix) with ESMTPS id 63E6D1A00BC for ; Mon, 30 Jun 2025 15:37:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1751297734; bh=tu8DyRhu9wm/ura3kXchgiMJyKbXl8CLOMRqvEdumf8=; h=References:In-Reply-To:Reply-To:From:Date:Subject:To:Cc:From; b=j+6TRmQQT0/sRbzDnjvZtMqQCMZwSGdzBqTeATghpYVmnZAMIzVlx52vQ5vnZr00Q XdHAHbSKc+9ODQd0WmV09LOn+78elo4iNORmGhRBOy7ZN3zTUpqnGn08aOq7PE3h1d gbzOS507eHl0zeHfegULzmpaOCRO402fuVbGi6a7huZMYbp0NS+BojNR1DSDnSwp1E DlAsoATcOw8lF1kn29XZkkIaQedM+i5AEn588taKiICWJX8uQSv1oqE1h9Q+XnF3ah Vfl+GOSrFuQa4tx7QTccDIYIMmo18vjexL0dFeVpbe8BIN6B8r6q1TVcowNHuGeSrT w6k8bp3FFKx4g== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 120491804CF for ; Mon, 30 Jun 2025 15:35:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) 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, FREEMAIL_REPLYTO,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from mail-il1-f173.google.com (mail-il1-f173.google.com [209.85.166.173]) (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 ; Mon, 30 Jun 2025 15:35:33 +0000 (UTC) Received: by mail-il1-f173.google.com with SMTP id e9e14a558f8ab-3ddd68aeb4fso39260935ab.2 for ; Mon, 30 Jun 2025 08:37:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1751297847; x=1751902647; darn=lists.php.net; h=content-transfer-encoding:cc:to:subject:message-id:date:from :reply-to:in-reply-to:references:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=tu8DyRhu9wm/ura3kXchgiMJyKbXl8CLOMRqvEdumf8=; b=Uh7Ls6sgGky9TbKRL5dikGI8wURarLo5xLJY2oIFTCTciaMd6TOjw4hus9Im9Wdt03 XGp3DtQnX8NvVvlAxpEqUa9wGoL3Jyog4kiJq6qFGgkx08Mcb1AZEofK0hTgvBRIjx9g UzXlRfn/qcgOhnUVVIBRnrZzb8qkTYP81g4BnEWiCg7Wg9+DHm2Ne6wyuju4sV2E4dlO KoJzP3rg1UKFHOtufVlLhYPZlPfZM53uGm0DZGIFmoAVqowwAj9WWad/TPufYG1TDMuQ YA1EJrycsocYxsQXi+xQKp8USbCHXnf+UjFZpzML3HFovKObaVzb1FzjaFZU2XsDm8aa zcMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751297847; x=1751902647; h=content-transfer-encoding:cc:to:subject:message-id:date:from :reply-to:in-reply-to:references:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=tu8DyRhu9wm/ura3kXchgiMJyKbXl8CLOMRqvEdumf8=; b=S3C7HTIDCztJpRRtOlZIeXO2atLfqY5zti6zgpYX//S5ofqgQzSTk+qEClI+3F69Th 6Sb+w7RFBUzWYEx+jUfS0X2FGOHSZtpmAgkf/bt6h+xBdJiisj6bnkYJ2D0eB2oJReqc GrE9WxWdBTdanVDYdQmpqxAiqc6S3NJ6KTkAm34kxItFOgCWs9CUqLZzInBC5vaIhsnf kwxyXpKy19Df4abtmOe2dgJNyIPwlnxX1mslBpnRnPDyHs22SrtkD8rHkLtQU0Sn5l9Z kibDw7qH13LpY5q+SR3+TdOqNFSX0owSQ3rjsOvWPbHnMlVW8iaFhFM4C/ZhZfFjgoKc vqRA== X-Forwarded-Encrypted: i=1; AJvYcCWp3mQnrPZI+9snSHMVwgrTSudLU2JZ2BaZjGWq5Ft1dWnmrKec9qxuJNmJNZJP4TNQG3FiDKDSqPg=@lists.php.net X-Gm-Message-State: AOJu0YzthebDRn822apcMUbbX4QGZjyGOd6NXsLtMJLsgod/R0WOV7FA P48xtU7xr6vSgAp+PwqGEiMeyXtnlbPCVfNSlxgapiBjQzhRWyPwCJ/0boTLf3Cb2XogoUnfzmr AKlnu3s7Wm7viIuyHkTbx4JTIfu+8PHE= X-Gm-Gg: ASbGncsyP4PF6gNlORFJ8FZ2GrOMbXAHC9PSldkSt4Tr6VM2c1uyXBxE3irgZKb4rA/ aZ6+ck9ghiMTC5C17Ea/G+wc34ZugwbNhTB5+zV74AZXRYW6Qq9fBEB+zGw3W2AQgT5LjprOBN3 7A/dbMvOZHL02Is6JmHwU1lu3FFlXEMexD6wBvUGyP8A9PWZgjFSrROt5VJVnhO9h56gCKRAm7m XgUHzhX/UUR3hTv X-Google-Smtp-Source: AGHT+IFYOeH319nhZ2eVoReW18AsLy8NgQ5yJdFZSL2GSwM95I9lwB/4mdQMIKt+0BaEVUhru1uozBfIR4iviZB09rI= X-Received: by 2002:a05:6e02:1fec:b0:3dd:be49:9278 with SMTP id e9e14a558f8ab-3df4aad65abmr146150595ab.0.1751297846583; Mon, 30 Jun 2025 08:37:26 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: In-Reply-To: Reply-To: erictnorris@gmail.com Date: Mon, 30 Jun 2025 11:37:10 -0400 X-Gm-Features: Ac12FXwUHJ5Wf0jtpfzXv1HLUdH1XUde6DMj8YeusyvfB5kuRtzxqzeznLMRAq4 Message-ID: Subject: Re: [PHP-DEV] [RFC][DISCUSSION] Object-oriented curl API v2 To: Nicolas Grekas Cc: Ayesh Karunaratne , PHP internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable From: eric.t.norris@gmail.com (Eric Norris) > I'm not even sure it's a good idea to add those namespaced options: using= CURLOPT_SSL_VERIFYHOST is perfect to find the corresponding curl documenta= tion with your favorite search engine. php's doc is awesome, but it cannot = compete with the details provided by curl's doc on the topic. That's a good point, but I do feel like there is value in having these under a namespace; a part of the reason I am interested in this proposal is that I'd like to see more of PHP core living under namespaces, since I think it will present a more consistent vision of the "standard library". I wonder if there is a way we could preserve the link, at least? In my proposal, the enum values are equivalent to their curl constant equivalents, which I thought would help with discoverability in the documentation. For the record - and I'll say this elsewhere - based on the discussion so far I am planning on withdrawing the proposal for separate enums. I'm still considering using a single enum to group all of these options, however, instead of constants.