Skip to content

Using custom mimetypes Custom MimeType memory leak with FrankenPHP #2432

@simon-watiau

Description

@simon-watiau

Here custom mime types are added to the current request's existing types.

However the Request stores those formats in a static attribute.

This is fine with FPM, however with FrankenPHP :

  • Request::getMimeTypes returns types [A, B]
  • $request->setFormat($format, $mimeTypes); set the new types to [A, B, C]
  • For the next request Request::getMimeTypes returns [A, B, C]
  • $request->setFormat($format, $mimeTypes); set the new types to [A, B, C, C]
  • (etc...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions