Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120684 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 88294 invoked from network); 26 Jun 2023 18:54:45 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 26 Jun 2023 18:54:45 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 09B4D1804D4 for ; Mon, 26 Jun 2023 11:54:44 -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,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,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-yw1-f182.google.com (mail-yw1-f182.google.com [209.85.128.182]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 26 Jun 2023 11:54:43 -0700 (PDT) Received: by mail-yw1-f182.google.com with SMTP id 00721157ae682-5704fce0f23so38188867b3.3 for ; Mon, 26 Jun 2023 11:54:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=benramsey.com; s=google; t=1687805682; x=1690397682; h=message-id:in-reply-to:to:references:date:subject:mime-version:from :from:to:cc:subject:date:message-id:reply-to; bh=VacEpA8zMToRX7muvdJ7wUQwzn8nlIdncqcmvlO7DFo=; b=ivIbVvu7ky5M2sF9jyBDHRoggxEIcOYstuqogHGyusYMXOpIL+R4kJ66HWu0pGdBJd M5MXFJyRXGPIGLMd+gGm6cStncDEpUKBQ9I+xv3tS/rU4Y/v9aCgSJHYPk2WTgOLBnAQ KDCodMi+8MluLtYaGDeQaimI4i3VNrp0G8D9fSLowpGvXGVZiP0nTVQnU/ZxrFJmOOwq A0Skfs5StjkeDWHgH0V12hFjE0wxO++r0FyC5YCMN4HCE5twGD5atCSn7+fn86muFk7d foZZ3rTaZnWXX68HUrTHsjq7jMV5GU96Xnl0jmCR+FdRFoz58LlonRIGK35Fblt+Nenl 2NCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687805682; x=1690397682; h=message-id:in-reply-to:to:references:date:subject:mime-version:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=VacEpA8zMToRX7muvdJ7wUQwzn8nlIdncqcmvlO7DFo=; b=ciu04WhJTraCoEdtR4Mo0KwUGJi6C2bnjJWZQ+tPMFewXB4Top7JEc7ektWfn4u5RB JUN9vsSFNWLPD1OTQ+fSdUdfhVZzb73YM7szPNdzsPzQszW/2zWOv+xI11hqeKxDiSI2 ZS/XsUyAoywOLo4eUcNjf9GweYaYqeNUjxQQoSUKywm8atdO4om10KcbUhLY3ilYr0XH f5y+DGNF1QErdtbTSWGDlKPJfLTCU4KAinqNRxOIVy44B9NESQdZM1DWU/vh5+/fX20m xcRayg+dWkJHt5+WD5zoRXVRN/y8Ww0zvTflJzhmupZhl9SBHo/LR6pmCLcmQNvHZhLi 2Nbg== X-Gm-Message-State: AC+VfDzpcDyDxFvhQ0HltM7I+s3VC4RRcVl5N/3xy2b02u6tWtSBq/+k EMpRc4SZEhSeYRxJP/nb4XJAiT7DJiXZ8P3WFxnBdQ== X-Google-Smtp-Source: ACHHUZ6ZOtofAVEqVwWBQ+wOTWBr56c3Kw4kzoscjLsDDt61BumKUWVbd8RawaYH00aJngaI1jCxIg== X-Received: by 2002:a81:6d0e:0:b0:576:98e0:32a6 with SMTP id i14-20020a816d0e000000b0057698e032a6mr7057133ywc.14.1687805682085; Mon, 26 Jun 2023 11:54:42 -0700 (PDT) Received: from smtpclient.apple (h96-61-105-82.lvrgtn.broadband.dynamic.tds.net. [96.61.105.82]) by smtp.gmail.com with ESMTPSA id m18-20020a819e12000000b00559fb950d9fsm1392861ywj.45.2023.06.26.11.54.40 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Jun 2023 11:54:40 -0700 (PDT) Content-Type: multipart/signed; boundary="Apple-Mail=_BCF147CA-77F6-46E1-9379-E68F6EC515E0"; protocol="application/pgp-signature"; micalg=pgp-sha256 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\)) Date: Mon, 26 Jun 2023 13:54:08 -0500 References: To: PHP internals In-Reply-To: Message-ID: X-Mailer: Apple Mail (2.3731.600.7) Subject: Re: [PHP-DEV] RFC1867 (multipart/form-data) PUT requests From: ben@benramsey.com (Ben Ramsey) --Apple-Mail=_BCF147CA-77F6-46E1-9379-E68F6EC515E0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii > On Jun 20, 2023, at 06:06, Rowan Tommins wrote: > > On Tue, 20 Jun 2023 at 10:25, Ilija Tovilo wrote: > >> Introduce a new function (currently named populate_post_data()) to >> read the input stream and populate the $_POST and $_FILES >> superglobals. >> > > > My initial instinct was to discuss how this could be made more flexible in > terms of input and output; but looking at how simple the implementation is, > this seems like a really quick win, and anything else can be future scope. > > To bikeshed the name a bit: > > * We should probably avoid the word "post"; although it populates $_POST, > that's really misnamed anyway, what we're really talking about is "form > data" > * Even if there isn't a current category prefix where it belongs, it should > probably follow the "category_specific" naming scheme > * We might in future add some related functions, such as returning the data > rather than populating globals > > How about "request_form_populate_globals"? Another option for the name: `populate_multipart_form_data()`. Cheers, Ben --Apple-Mail=_BCF147CA-77F6-46E1-9379-E68F6EC515E0 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iHUEAREIAB0WIQToXQMR3fpbrPOmEOewLZeYnIwHGwUCZJne0AAKCRCwLZeYnIwH G6ToAQCRaPSZ6csWhCjy4jjOs47zxAuaj59Ek7C0gUOl3PQVMQD+MFn/Fo7i0NTE g5pCn+vzdl9pDNIgtd6Nx59qL3CKvR8= =zfqs -----END PGP SIGNATURE----- --Apple-Mail=_BCF147CA-77F6-46E1-9379-E68F6EC515E0--