php / php/php-src

HTTP 425 Too Early missing text in http_response_code()

未关闭
#16,068 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

Feature Status: Needs Triage
主要语言
C
星标
40.4k
派生
8.1k
平均合并
2 天 13 小时
30 天内合并 PR
96

描述

Description

The following code:

<?php
http_response_code( 425 );

The response status header does not include the text "Too Early"
It's missing in https://github.com/php/php-src/blob/master/main/http_status_codes.h#L61
See https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/425

PHP Version

8.3.x

Operating System

No response

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 main/http_status_codes.h 中状态 425 的条目开始,将其与 issue 中的 http_response_code(425) 示例以及链接的 MDN 描述进行比较。生成的响应状态包含文本 "Too Early" 即表示完成;请在 PHP 8.3.x 上验证其行为。

由索引模型根据 Issue 内容生成。

评估

技术栈
c, php
领域
backend, networking
Issue 类型
缺陷
难度
1/5
预计耗时
1 小时以内
活跃度
停滞
描述清晰度
描述清楚
新手友好度
52/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。