Improve user experience when extension files not found
还没有人认领这个 Issue。
- 主要语言
- C
- 星标
- 40.4k
- 派生
- 8.1k
- 平均合并
- 2 天 13 小时
- 30 天内合并 PR
- 96
描述
Description
(Context: User having issues enabling extensions on PHP on Windows: https://www.reddit.com/r/PHPhelp/comments/1mrxepv/trouble_installing_php_composer_and_laravel/ )
PHP Warning: PHP Startup: Unable to load dynamic library 'curl' (tried: C:\php\ext\curl (The specified module could not be found), C:\php\ext\php_curl.dll (The specified module could not be found)) in Unknown on line 0
I think it would be helpful if this message mentioned the extension_dir setting explicitly.
eg. something along the lines of "Is extension_dir correct?"
If you don't know that this setting exists, it's not obvious why PHP is looking for extension files in the wrong place.
I think it would also help to move the extension_dir setting directly above the extension= list (if possible) in the php.ini template files. (It is mentioned in the comments above, but those are easy to miss)
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先定位发出动态库启动警告的代码,以及 issue 中提到的 php.ini 模板文件。检查 extension_dir 和 extension 条目的呈现方式,然后确认警告明确将用户指向 extension_dir,并且模板将该设置直接放在 extension 列表上方。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- c, php
- 领域
- backend
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100