embed sapi unable to load tokenizer, undefined symbol zend_ce_stringable
还没有人认领这个 Issue。
- 主要语言
- C
- 星标
- 40.4k
- 派生
- 8.2k
- 平均合并
- 2 天 13 小时
- 30 天内合并 PR
- 96
描述
Description
Experimenting with the sample embed sapi code and build instructions from the provided readme. I also have the tokenizer extension installed. The php cli sapi works just fine. And php -m reports the tokenizer extension loaded. However, the embed sapi throws a warning about being unable to load tokenizer due to an undefined symbol, zend_ce_stringable. I suspect other extensions that utilize this class will also fail to load in the same way.
Any ideas what am I missing here? This might not be a bug (apologies if not), but I'm just not seeing what isn't being loaded to make tokenizer happy. Feels like a bug or a documentation oversight. Will poke at it some more tomorrow.
FreeBSD main, PHP 8.1.10
PHP Version
PHP 8.1.10
Operating System
FreeBSD main
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
先从示例 embed SAPI 代码和提供的 README/build 说明开始,然后比较 embed SAPI 和 CLI 加载 tokenizer 扩展的方式。确认未定义符号是由 embed build 还是由扩展加载导致的,并在 tokenizer 加载时不再出现警告,或文档说明了所需的设置后,将该 issue 视为已解决。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- c
- 领域
- backend
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100