SessionInterfaceHandler is throwing a deprecation notice as a warning instead of a deprecation
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
issue 指向 ext/session/session.c 中的 session_handler_interface_gets_implemented()。阅读两处缺失方法检查,并查找附近类似的 deprecation 级别诊断,以遵循项目惯例。更改这些通知的警告级别,然后运行相关的 session 测试,并确认缺少 create_sid() 和 validateId() 时会产生 deprecation 通知。
由索引模型根据 Issue 内容生成。
描述
Description
static void session_handler_interface_gets_implemented(zend_class_entry *self, zend_class_entry *class) {
if (!zend_hash_str_exists(&class->function_table, ZEND_STRL("create_sid"))
&& !session_interfaces_include(class, php_session_id_iface_entry)) {
zend_error(E_WARNING,
"Class %s implementing SessionHandlerInterface is missing the create_sid() method which will be required in PHP 9.0",
ZSTR_VAL(class->name));
}
if (!zend_hash_str_exists(&class->function_table, ZEND_STRL("validateid"))
&& !session_interfaces_include(class, php_session_update_timestamp_iface_entry)) {
zend_error(E_WARNING,
"Class %s implementing SessionHandlerInterface is missing the validateId() method which will be required in PHP 9.0",
ZSTR_VAL(class->name));
}
}
Found this after a PHP 8.5 -> 8.6 upgrade with 3rd party software - tried to filter out deprecation notices but this is coming up as an E_WARNING instead - and it should not be
Simply changing the E_WARNING to a deprecation level should fix the issue - it's annoying!
PHP Version
PHP 8.6.0 (cli) (built: Nov 20 2026 15:07:19) (NTS)
Copyright © The PHP Group and Contributors
Built by Ubuntu
Zend Engine v4.6.0, Copyright © Zend by Perforce
with Zend OPcache v8.6.0, Copyright ©, by Zend by Perforce
Operating System
No response
- 主要语言
- C
- 星标
- 41.9k
- 派生
- 8.5k
- 平均合并
- 2 天 16 小时
- 30 天内合并 PR
- 116
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
php/php-src 的其他 Issue
-
getimagesize(): WebP VP8 dimensions are accepted with an invalid start code可能已有人在做 @lazerg 今天认领。 未关闭Bug Status: Needs Triage
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
Bug Status: Needs Triage
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
Bug Status: Needs Triage
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
Bug Status: Needs Triage
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
BMP width above INT_MAX is published as a negative HTML attribute可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭Bug Status: Needs Triage
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
shinyquagsire23/OpenJKDF2#540 ·
维护者通常 12 天内回复
-
Prison work hall: laundry and kitchen stations stand at bare walls, the hatch has no counter or sign未关闭
难度 2/5 1-3 小时 新手友好度 78/100
Life-Framework/Life-Framework#5939 ·
维护者通常 1 天内回复
-
autoconf failes to find libsodium even when present due to implicit function declaration可能已有人在做 @coderjoe 今天认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 13 天内回复
-
bug python
难度 2/5 1-3 小时 新手友好度 87/100
Jstar269/nakagawa-recomp#3521 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 72/100