PHP extensions
还没有人认领这个 Issue。
评估
调研方向
先查看 Bref 的 PHP 扩展文档和链接的 issue 评论,然后将当前的编译列表与提议的 gd、exif、mbstring、sodium 和 sqlite3 候选项进行比较。确认仓库用例所需的扩展集合,更新扩展配置,并验证 Lambda 构建是否能使用已达成一致的列表成功编译。
由索引模型根据 Issue 内容生成。
描述
Currently, we compile with the following extensions enabled:
- Core
- bcmath
- ctype
- date
- fileinfo
- filter
- hash
- iconv
- json
- openssl
- pcre
- Phar
- posix
- Reflection
- session
- SPL
- standard
- tokenizer
Looking at https://bref.sh/docs/environment/php.html#extensions-installed-and-enabled and from scanning through use cases, the following could be interesting:
- gd, exif - image processing
- mbstring - prerequisite for exif anyways
- sodium - for crypto
zlib - if we want to create ZIP files, HTTP compression- see https://github.com/xp-forge/lambda/issues/8#issuecomment-1184378957- sqlite3 - for temporary data storage
libxml, dom, xml, xmlreader, xmlwriter - for processing XML and HTML- see #11
The following extensions don't seem to make sense for an AWS lambda enviromment:
- pcntl - for parallelization, you would most probably just invoke other lambdas and/or use a message queue
- readline - this is for humans sitting in front of a terminal, not for the serverside
- curl, ftp, mysqli / mysqlnd - the XP Framework has it's own protocol implementations
- sockets - the standard socket library works just as well for (most - or almost all?) cases
- opcache - we leave our code running after compiling once, caching doesn't improve this any more
SimpleXML - covered by XP Framework's XML APIs- used by AWS SDK, see https://github.com/xp-forge/lambda/issues/8#issuecomment-966497081
- 主要语言
- PHP
- 星标
- 2
- 派生
- 0
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
xp-forge/lambda 的其他 Issue
相似的 Issue
-
sync-en
难度 1/5 1-3 小时 新手友好度 88/100
-
sync-en
难度 1/5 1-3 小时 新手友好度 88/100
-
Перевод устарел
难度 1/5 1-3 小时 新手友好度 88/100
-
status/awaiting_triage
难度 2/5 1-3 小时 新手友好度 74/100
-
Issue: ready for confirmation Reported on 2.4.x
难度 2/5 1-3 小时 新手友好度 88/100