mysqli report mode should be per connection instance
未关闭
还没有人认领这个 Issue。
Extension: mysqli
Feature
Status: Needs Triage
- 主要语言
- C
- 星标
- 40.4k
- 派生
- 8.1k
- 平均合并
- 2 天 13 小时
- 30 天内合并 PR
- 96
描述
Description
Currently, the mysqli report mode is per shared driver class mysqli_driver.
related with https://github.com/php/php-src/pull/12579#discussion_r1379779634 discussion
The motivation for this feature request is safety. Nowdays a lot of code rely on exceptions. And this shared report config is dangerous, as one code may rely on exceptions beiing thrown (as of PHP 8.1 default) and another unrelated code may disable them.
The mysqli_driver class should be completely dropped then.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 mysqli_driver 类以及 pull request 12579 中的相关讨论开始,这是唯一提到的实现入口。追踪 report mode 当前是如何共享的,并确定连接级别的设计;完成标准是 report mode 按连接实例设置,并移除 mysqli_driver。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- c, php
- 领域
- database
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100