Phase out `Database::prepareStatement()`
维护者通常 1 天内回复
@Cyperghost 已经在做这个了。
开始于 2024年10月18日。
评估
这个 Issue 还没有评估数据。
描述
Version 5.4 added Database::prepare() as a convenient alternative that performs the replacement based on WCF_N and has proven to prevent a lot of runtime errors for legacy setups with WCF_N !== 1.
The next step is to deprecate prepareStatement() and make it an alias of prepare() in 7.0. For some situations, most important exporters, we need to preserve the previous behavior by introducing prepareUnmanaged() which behaves exactly as prepareStatement() but represents an explicit opt-in.
- WoltLab Suite 6.2
-
prepareUnmanaged()is introduced and is identical to theprepareStatement()in version 6.1. -
prepareStatement()is marked as deprecated and forwards all calls toprepareUnmanaged(). -
prepare()is updated to useprepareUnmanaged()instead ofprepareStatement(). - All uses of
prepareStatement()in the exporters are migrated toprepareUnmanaged()orprepare(). - All remaining uses of
prepareStatement()in the software are rewritten to useprepare()instead. This includes rewriting the queries to no longer useWCF_Ndirectly.
-
- WoltLab Suite 7.0
prepareStatement()is being removed.
- 主要语言
- PHP
- 星标
- 248
- 派生
- 147
- 平均合并
- 17 分钟
- 30 天内合并 PR
- 21
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
WoltLab/WCF 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 75/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 58/100
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 30/100
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 20/100
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 25/100
WoltLab/WCF#6771 · 1 个 reaction ·
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
HE-Arc/le-panier-du-coin#49 ·
维护者通常 1 天内回复
-
15.0
难度 2/5 1-3 小时 新手友好度 65/100
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
LinkNacional/woo-rede#367 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
Lazyload SVG placeholder runs uncached attachment lookups with JSON-escaped URLs on REST responses未关闭customer report
难度 2/5 1-3 小时 新手友好度 72/100
Codeinwp/optimole-wp#1253 ·
维护者通常 1 天内回复