Skip to content

PHP RFC for multipart/form-data handling on all verbs #49503

@Nayte91

Description

@Nayte91

Description

As this issue begin to grind my gears, and because API-Platform with the Symfony's support heavily uses REST architecture, I would like to propose a RFC to PHP.
@nicolas-grekas or @dunglas do you have, in few seconds (I don't want to bother you), resources about the whole topic? Anything besides the below resources should be known to begin? What about the PHP side?

Should this be an issue or a discussion?

Resources

Example

The discussion around the previous abandoned RFC shows few interesting directions. Few questions:

  • New superglobals $_GET, $_POST --> $_PUT, $_PATCH, .. ?
  • What about $_FOO if a non-standard verb is used?
  • What about disengaging PHP from those $_VERBS to have something more universal?
  • The files should be found in $_FILES, regardless of the actual request method?
  • What about an OOP API for the request? Or an interface?
  • What about an enum for standardized verbs?
  • Should PHP be agnostic about the HTTP standard (having a file with a GET request, accepting any Content-Type and any verb, ...) or should it allows/disallows requests in place of the web server/userland?
  • Other ideas?

Those are ideas around the topic, and can be distributed into multiple RFC's. For now, sky is the limit.

Note: I can't implement as I don't know C. 😢

Metadata

Metadata

Assignees

No one assigned

    Labels

    RFCRFC = Request For Comments (proposals about features that you want to be discussed)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy