Files
frankenphp/testdata/headers.php
Alexander Stecher a161af26ae fix: allow headers without whitespace after colon (#1741)
* Allows headers without whitespace after colon.

* Makes headers faster.

* Optimizes header splitting.

* Formatting.
2025-07-16 08:57:37 +02:00

15 lines
324 B
PHP

<?php
require_once __DIR__.'/_executor.php';
return function () {
header('Foo: bar');
header('Foo2: bar2');
header('Foo3:bar3'); // no space after colon (also valid, not recommended)
header('Invalid');
header('I: ' . ($_GET['i'] ?? 'i not set'));
http_response_code(201);
echo 'Hello';
};