Skip to content

PHP Development Server considers a query with an emoji a 'Malformed HTTP request' #18129

@JayGuerette

Description

@JayGuerette

Description

The following code:

php -S 127.0.0.1:8080 &
curl 'http://127.0.0.1:8080/?🐦'

Resulted in this output:

[Fri Mar 21 18:07:22 2025] 127.0.0.1:49588 Invalid request (Malformed HTTP request)

But I expected this output instead:

[404]: GET /?🐦 - No such file or directory

A 404 is expected because there is no index.php, but it still indicates successful parsing of the request.

PHP Version

PHP 8.3.17

Operating System

Fedora 41

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions