Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:122236 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 68586 invoked from network); 23 Jan 2024 19:41:19 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 23 Jan 2024 19:41:19 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1706038922; bh=T3ROCd+4/gOwLEfgSJyJbumRpcCHUqZLhb5CyA/szQU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ZsTjx985ldgCcVc4wBPXkKGshbYfpZDumRZS5IAp3CAhjAPPlHnEliKJxYoJl7Wx6 PmQO+M+auROYqdoQcMW4EX1pvB3H5vlfsfNaZdMDlWPg0wd11tfBqAdV/xhh6gszBe Bxn1Q5sPzR0mK9DtNPhYxDrRB4xWJdRlcVSQXz5DKLa84/jW6KPedzgZgrunmODgdK 5ve6neuoi6qmpJ7By0ML5HIBR7ahM2yoR3G/SAQ5AtkgJ1Fg9WX7uV5Pqzx+OD+m8t sdUgF+mGEHWMd5Z/x/pYp149s/sdxGSHry3X6FhfDwVfsFx0NRjXgW9d5kvZVbfO6B xKEFoXJ//ep2Q== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id BEF2F18006A for ; Tue, 23 Jan 2024 11:42:01 -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_20,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 autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (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 ; Tue, 23 Jan 2024 11:42:01 -0800 (PST) Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a27733ae1dfso488085366b.3 for ; Tue, 23 Jan 2024 11:41:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706038876; x=1706643676; 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=H20LtyeyazMviKpWPX/AJuh6h3N3gwmgBVIg1rZ0zpw=; b=ko3yPW1OBDXwHBhVtQh/8EJEIYAH9KXVy3aGLZPvf8qcNLhEIqDkeGUgxEZFefGJi0 gSTDckd32A7OqHPeFBa3Rr4CEzVUCOObxbvTbYsob9AgTMeeGXKuabFRtlqxvHsTbt1Q koMgCfrkE3gduTr5OHl9JM8v49iruGiPgASX/6CrMv1JKP320D43Jf2YB53cXvxm00XT HUxTDzCLUhxqw1xHZl54/XI6FVrv9tPq67q6gghtNyfCr65SRDEVydqCnLiG8ktZKw0t WRVbRNb6w5lfA3+nolu+oAfDFIXIzQ+GtVvgooV2s3DbQY8c6gw4oSUAjS1rHQ1zoAyY j2ww== X-Gm-Message-State: AOJu0YwOxN0ukqJEK+lpP+6Sci3rrczglqUDE9y2EN33HGaRhndUzNms cgXQ9H8m9KS0idBJFwaHoaCmmHqf+T4JvutPWob+yZONcS3xlAkQOnXn8qqCcnng1nfXPZYSYUr HGaKuESz79wqqPnHEeSgYc9vGGvS0QeHQwc9Ly4UQ2cB/pfeE X-Google-Smtp-Source: AGHT+IEEqRJ2F+kJy4+JScbvO27pMVkgbunq0LeDfY92REZnxFN9vYtHTlnsJqXR5+Bn8cuZhJCLEAmB3HmWrnyDlrc= X-Received: by 2002:a17:906:4959:b0:a2e:a517:df64 with SMTP id f25-20020a170906495900b00a2ea517df64mr122931ejt.42.1706038876026; Tue, 23 Jan 2024 11:41:16 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 23 Jan 2024 11:41:04 -0800 Message-ID: To: Ilija Tovilo Cc: PHP internals Content-Type: multipart/alternative; boundary="0000000000002dc889060fa221f8" Subject: Re: [PHP-DEV] [RFC][Vote] RFC1867 for non-POST HTTP verbs From: pollita@php.net (Sara Golemon) --0000000000002dc889060fa221f8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Jan 22, 2024 at 1:24=E2=80=AFAM Ilija Tovilo wrote: > I started the vote on the "RFC1867 for non-POST HTTP verbs" RFC. > https://wiki.php.net/rfc/rfc1867-non-post > > Apologies for not seeing the discussion period, but I'll qualify my "No" vote, because I'm actually +1 on the general concept, and this is just a little bikeshedding (this RFC will pass even with a no vote from me). 1/ This function reaches into the SAPI to pull out the "special" body data. That's great, but what about uses where providing an input string makes sense. For that, and for point 2, I'd suggest `http_parse_query(string $query, ?array $options =3D null): array|object`. 2/ `request_` represents a new psuedo-namespace, functions are easier to find and associate if we keep them grouped. I recommend 'http_` because it compliments the very related function `http_build_query()`, and for the version of this function which refers directly to the request: `http_parse_request(?array $options =3D null) : array|object`. -Sara --0000000000002dc889060fa221f8--