Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121263 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 7814 invoked from network); 7 Oct 2023 12:56:06 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 7 Oct 2023 12:56:06 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 7FA3A18005C for ; Sat, 7 Oct 2023 05:56:02 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sat, 7 Oct 2023 05:56:01 -0700 (PDT) Received: by mail-pj1-f51.google.com with SMTP id 98e67ed59e1d1-27762a19386so2015647a91.2 for ; Sat, 07 Oct 2023 05:56:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696683361; x=1697288161; darn=lists.php.net; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=3mkXe107f+TOEuR0uodKHUPV3CYys7gQKUIxAgHFat8=; b=JkWeHiapz23ZD9SIdUOVp41iHjqNYX86ImkBFk3MzYRx9tZRqSpiut9JF1SiFHxMsw Reh6moHbtp9/ulIiuHSiEsbfFjcNkcehEducOtbMo3MKEnxj19ru3RiY9pZ2HQidutVx YHkpBChmAf/OTst7bRrXqlyPNYrjVVC33KL0bU1ajwILGj+FbPp6A1tC1Pk7LYtICAAw bf9zVY6NO2H6OWC7TYerFfbAFgv924KYScU5L7DNnfws7jEpoicKwDjhteNeAoMAC9HM 5FpNRUQkuUTt0EcHlEJyoLMQOB5XEj7ndL8lBxghjlj/9MXH0i6HkG7xuVpbTkgWhmml BB6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696683361; x=1697288161; h=content-transfer-encoding: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=3mkXe107f+TOEuR0uodKHUPV3CYys7gQKUIxAgHFat8=; b=Lk2yNMag31+RT0Mp9JQHCtoXGqjLXxbHl6TVJecDHEC7oMK3psy/Hy/H2kwHCFtGs+ zBwOejLzBV6QZyHsfsfo2dBIMo12E4qb49iJ//x8cte01kvqfCORB+qz3tiPzWtcL9jg iw96r27sSvfhXNj9oQo63RwnIUewGqgSTSje8yGacZZqK1K12W7P2CVlcJFj6pAISMGD 4xwt4DTJYwJlWqDkcwoC4ufHl1ylGFLQQasmTPF4al0RJZ/wGwnZrTic+GbW2Ef+PVr1 LCWTjyhHdMVvohI8kkRfFewOlLY1Q/y9LO3607FufJoGThUXzEmULvBX/QSHw4Ohg+S/ XOTQ== X-Gm-Message-State: AOJu0YxKwdx54PyqjXdYk+psRtLRwDUbJIk9xMSkhfzbZ52pipbhL87w Q+cskYv2NNl1q+qZgLEw8PtNs68eDoyOZWP2cBQoRCmsFkBo4Q== X-Google-Smtp-Source: AGHT+IGN0DzpS6iTpVjzEMRMT4O0C0n5zH08PsvRv+QzZ4ptL3NEP2Xg2iJfY0TiFd7Q+x3WWPgXiLgbMZVN3z66dYU= X-Received: by 2002:a17:90b:912:b0:277:852:cf45 with SMTP id bo18-20020a17090b091200b002770852cf45mr9876381pjb.19.1696683360642; Sat, 07 Oct 2023 05:56:00 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Sat, 7 Oct 2023 14:55:49 +0200 Message-ID: To: PHP internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [RFC][Under discussion] RFC1867 for non-POST HTTP verbs From: tovilo.ilija@gmail.com (Ilija Tovilo) Hi Marco Please note that you have accidentally created a new thread. I'm responding from the main thread. > >>> On Fri, Oct 6, 2023 at 2:44=E2=80=AFPM Ilija Tovilo wrote: > >>> https://wiki.php.net/rfc/rfc1867-non-post > > Just wanted to mention that maybe this is a great opportunity to create a= request_ family and start with request_parse_post_data Something like request_parse_body() could work. That should satisfy both your and Micha=C5=82s request. This naming extends nicely to other formats if added later on. This reminded me that it should be specified what happens when the format is not supported (i.e. anything but multipart or urlencoded formats). The automatically invoked behavior does nothing and leaves the input stream unconsumed so that the PHP script can process it. For the explicitly invoked version we should throw an exception to inform the user that nothing happened. Ilija