Skip to content
This repository was archived by the owner on Feb 21, 2025. It is now read-only.

Type error while creating sever request from globals #21

@azjezz

Description

@azjezz

this issue is encountered with $_FILES and $_COOKIE


reproduce :

$_FILES :

$_FILES = [
    'slide-shows' => [
      'tmp_name' => [
        // Note: Nesting *under* tmp_name/etc
        0 => ['slides' => [0 => __FILE__, 1 => __FILE__]],
      ],
      'error' => [0 => ['slides' => [0 => 0, 1 => 0]]],
      'name' => [0 => ['slides' => [0 => 'foo.txt', 1 => 'bar.txt']]],
      'size' => [0 => ['slides' => [0 => 123, 1 => 200]]],
      'type' => [0 => ['slides' => [0 => 'text/plain', 1 => 'text/plain']]],
    ],
  ];

$_COOKIE :

$_COOKIE = [
  'foo' => ['bar', 'bar' => 'baz', 'qux' => 'dux'],
  'bar' => ['bar' => ['baz' => ['qux' => 'dux']]]
];

see : https://github.com/azjezz/http-normalizer#normalize

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions