You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cli: passing PHP_HTTP_PARSER_STRICT build option doesn't work #24697
The strict-mode switch name differs between the header and the implementation, so all STRICT_CHECK() sites are compiled out.
The header logic is also inverted: passing -DPHP_HTTP_PARSER_STRICT reduces the value to 0 instead of enabling strict mode.
As a result, "strict mode" cannot be enabled by any build option.
Request line ending with bare LF -> 200 (expected: reject)
Header line ending with bare LF -> 200 (expected: reject)
Blank line ending with bare LF -> 200 (expected: reject)
HTTP/9.9 -> 200, and the response status
line echoes "HTTP/9.9 200 OK"
HTXP/1.1, HXXP/1.1 (protocol name typo) -> 200 (expected: reject)
HTTP/1.1 without Host -> 200 (expected: 400)
AI Attribution: found by GPT-6 Luna, tested by DeepSeek V4.1 Flash
changed the title [-]sapi/cli: PHP_HTTP_PARSER_STRICT is defined but never referenced, so STRICT_CHECK() is always a no-op[/-][+]cli: passing PHP_HTTP_PARSER_STRICT build option doesn't work[/+]on Oct 25, 2026
Activity
[-]sapi/cli: PHP_HTTP_PARSER_STRICT is defined but never referenced, so STRICT_CHECK() is always a no-op[/-][+]cli: passing PHP_HTTP_PARSER_STRICT build option doesn't work[/+]Fix phpGH-24697: cli: passing PHP_HTTP_PARSER_STRICT build option doe…
Merge branch 'PHP-8.4' into PHP-8.5
Merge branch 'PHP-8.5' into PHP-8.6
Merge branch 'PHP-8.6'
Merge branch 'PHP-8.4' into prateek/fix-gh24577-ce-cache-race