unreachable program point: mime_content_type()
未关闭
还没有人认领这个 Issue。
Bug
Category: Streams
Extension: fileinfo
Status: Needs Triage
- 主要语言
- C
- 星标
- 40.4k
- 派生
- 8.1k
- 平均合并
- 2 天 13 小时
- 30 天内合并 PR
- 96
描述
Description
The following code:
<?php
var_dump(mime_content_type('./..'));
?>
Resulted in this output:
/home/dan/php-src/main/streams/plain_wrapper.c:290:4: runtime error: execution reached an unreachable program point
PHP Version
8.4.1
Operating System
No response
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
重现调用 mime_content_type('./..') 的 PHP 8.4.1 示例,并检查 main/streams/plain_wrapper.c 第 290 行附近报告不可达程序点的位置。确定对此输入的预期处理方式,并验证 runtime 不再到达所报告的失败位置。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- c, php
- 领域
- backend
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100