mysqli report mode should be per connection instance

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

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
停滞
技术栈
c, php
领域
database

调研方向

从 mysqli_driver 类以及 pull request 12579 中的相关讨论开始,这是唯一提到的实现入口。追踪 report mode 当前是如何共享的,并确定连接级别的设计;完成标准是 report mode 按连接实例设置,并移除 mysqli_driver。

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

描述

Extension: mysqli Feature Status: Needs Triage
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.

主要语言
C
星标
40.4k
派生
8.2k
平均合并
2 天 15 小时
30 天内合并 PR
103

贡献指南

打开贡献指南

从这里开始

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

php/php-src 的其他 Issue

查看 php/php-src 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

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