Missleading, unhelpfull message in logs when loading curl and openssl
未关闭
还没有人认领这个 Issue。
Category: Dynamic Loading
Feature
OS: Windows
Status: Needs Triage
- 主要语言
- C
- 星标
- 40.4k
- 派生
- 8.1k
- 平均合并
- 2 天 13 小时
- 30 天内合并 PR
- 96
描述
Description
Pretty standard PHP 8.3 installation on Windows with Apache 2.4.
I load this extensions:
extension_dir = "c:/Prog/PHPs/PHP83/ext"
extension=ldap
extension=curl
extension=gd
extension=mbstring
;...
extension=openssl
;...
Resulted in this output (after each Apache restart):
[01-Feb-2024 12:35:41 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'ldap' (tried: c:\Prog\PHPs\PHP83\ext\ldap (The specified module could not be found), c:\Prog\PHPs\PHP83\ext\php_ldap.dll (The specified module could not be found)) in Unknown on line 0
[01-Feb-2024 12:35:41 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'curl' (tried: c:\Prog\PHPs\PHP83\ext\curl (The specified module could not be found), c:\Prog\PHPs\PHP83\ext\php_curl.dll (The specified module could not be found)) in Unknown on line 0
[01-Feb-2024 12:35:41 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'openssl' (tried: c:\Prog\PHPs\PHP83\ext\openssl (The specified module could not be found), c:\Prog\PHPs\PHP83\ext\php_openssl.dll (The specified module could not be found)) in Unknown on line 0
But I expected this output instead:
[01-Feb-2024 12:35:41 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'ldap' (found c:\Prog\PHPs\PHP83\ext\php_ldap.dll), but was unable to load it due to: X.
Note that I'm probably missing some DLL files that cURL needs or something... I think. That is why the message is misleading. The path 'c:\Prog\PHPs\PHP83\ext' is valid, and the DLL files of the extensions are all there.
PHP Version
PHP 8.3.2
Operating System
Windows 10 22H2
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
使用 issue 中显示的扩展配置和路径,在 Windows 10、PHP 8.3.2 上重现启动警告。跟踪 PHP 的 Windows 扩展加载诊断信息,并使日志能够区分缺少扩展 DLL 与加载其某个依赖项失败;根据报告的场景验证生成的警告。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- php
- 领域
- operating-systems
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100