Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121934 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 76021 invoked from network); 5 Dec 2023 20:29:31 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 5 Dec 2023 20:29:31 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 625E5180034 for ; Tue, 5 Dec 2023 12:29:42 -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=-3.1 required=5.0 tests=BAYES_00,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 autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-qk1-f179.google.com (mail-qk1-f179.google.com [209.85.222.179]) (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, 5 Dec 2023 12:29:41 -0800 (PST) Received: by mail-qk1-f179.google.com with SMTP id af79cd13be357-77f0e76c948so15346685a.0 for ; Tue, 05 Dec 2023 12:29:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701808169; x=1702412969; 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=k4Xnznp7vlY+d/WHprW2qcEEO6z1ZmznxdjgTomgNeI=; b=ajbxkOylwfqwEnaAgWb9YEPmum8VTFA3cUU/W0NPbRUfEPaW7FddnbYGRmQzPEveSb Jgam9OjbX67V61bDcNPpG8TOxuvLntMhdKQ9SCTRBO1PfJdCiuiQr3iHozikRVtQ4PZ/ d+/GtGoQfdjmozFMgsRnYldERbJ9WnocosocabzCboG2Zz2UFTxC+ZwOXEg8t4eKT0d4 tQJa1OpvEcGbLP4rPyF82FdnjGGNAZea+op1l23IcAjrxWOHK7SsmwFI0W9PGEVQWYxB +Cl/FQNkc4x/WOLAB9uKKqyh/JmKZLR39C2CosZ6LY0cqyS62VPghZbCyH0hLB0eDW1G 26zA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701808169; x=1702412969; 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=k4Xnznp7vlY+d/WHprW2qcEEO6z1ZmznxdjgTomgNeI=; b=Nnvf/WR/kSf2m6u5ap4rMqXZUuJw+3g/MAzyadA5mlShxy5xxfsRkYRBDKJbZ5Dd+n S2aEnJiH6OexBQTS1N5/aXcPNw5Ul+2/flWN8MQm8JO+KDSjpHbLX/pyKZ5fg21PmMDq 5dHaBrrQEyDKlqmB/y8lqPhIsL4bOLmXG8QEB6lQHBBFjzqBwLvLOGNi3/bk9jNKunyS 7DVzBPygau/Oa/ymqpcoOEK5kShjuJv2UnjgqtWb9JPL+7YXZGcAs22sd2yaKjH3JvKf FWiSxqhqYhjH7CmH3WQF2UDrJ7GvdheqH0wpcl/YWYGpql2Atevi7ySTSPtmPOMoweau 6bog== X-Gm-Message-State: AOJu0YzY9xFlY3pQvThqLtkggXTZRWPol0XSTf2D4Nfuw4wMV2PB6xGK J9Q1OOcXvsdiit8bTiqU5WspSac2gSjnO1LI8WrjDmJfAyRbsAxn X-Google-Smtp-Source: AGHT+IE5omX9TigJ5C9M5ifj/E4Hgzn2vO8VXMBhuydmSWKl2OoevdjEztz6cOM4Uldfs+Vm52Z7W/WJsdgTYzKqHe4= X-Received: by 2002:a05:620a:3728:b0:77e:fbba:645d with SMTP id de40-20020a05620a372800b0077efbba645dmr2940705qkb.60.1701808169040; Tue, 05 Dec 2023 12:29:29 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 5 Dec 2023 21:29:18 +0100 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 everyone On Fri, Oct 6, 2023 at 3:44=E2=80=AFPM Ilija Tovilo wrote: > > I'd like to announce an RFC that proposes adding a new function called > parse_post_data() to expose the existing functionality to userland, so > that the mechanism can be used for other HTTP verbs. > > https://wiki.php.net/rfc/rfc1867-non-post I took a closer look at RoadRunner regarding file uploads and noticed that $input_stream will not be useful to it after all. RoadRunner handles files directly in its Go server by parsing the multipart body, storing any files to disk, and only transferring the file handles (along with any post data) to the PHP workers. New SAPIs could instead tweak sapi_module.read_post() when handling a new request. We can add these parameters if somebody can present a valid use-case, for now I opted to remove the $input_stream and $content_type parameters. Please let me know if you have any more feedback. I will wait at least 2 weeks before going forward with a vote, as this is a bigger change to the RFC. Ilija