Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Commit

Permalink
add snappy extension
Browse files Browse the repository at this point in the history
  • Loading branch information
crazywhalecc committed Sep 4, 2023
1 parent 109d0e3 commit 29cdfbb
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/.vitepress/components/CliGenerator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ const EXTENSIONS = [
'session',
'shmop',
'simplexml',
'snappy',
'soap',
'sockets',
'sodium',
Expand Down
6 changes: 5 additions & 1 deletion docs/en/guide/extension-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,8 @@ The compiled `./php` binary can be configured and run by specifying the INI, eg
## glfw

1. glfw depends on OpenGL, and linux environment also needs X11, which cannot be linked statically.
2. macOS platform, we can compile and link system builtin OpenGL and related libraries dynamically.
2. macOS platform, we can compile and link system builtin OpenGL and related libraries dynamically.

## snappy

1. The snappy library is written in C++, so you can only compile purely statically linked PHP binaries under Alpine Linux.
1 change: 1 addition & 0 deletions docs/en/guide/extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
| session | yes | yes | |
| shmop | yes | yes | |
| simplexml | yes | yes | |
| [snappy](./extension-notes#snappy) | yes, untested | yes, untested | |
| soap | yes | yes | |
| sockets | yes | yes | |
| sodium | yes | yes | |
Expand Down
4 changes: 4 additions & 0 deletions docs/zh/guide/extension-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,7 @@ bin/spc build gd --with-libs=freetype,libjpeg,libavif,libwebp --build-cli

1. glfw 扩展依赖 OpenGL,在 Linux 平台还依赖 X11 等环境,这些库都无法被轻易地动态链接。
2. 在 macOS 系统下,我们可以动态链接系统的 OpenGL 和一些相关的库。

## snappy

1. snappy 的库采用 C++ 编写,所以你只能在 Alpine Linux 下编译纯静态链接的 PHP 二进制。
3 changes: 2 additions & 1 deletion docs/zh/guide/extensions.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 扩展列表
# Extensions

> - yes: supported and tested
> - untested: supported, but not tested
Expand Down Expand Up @@ -58,6 +58,7 @@
| session | yes | yes | |
| shmop | yes | yes | |
| simplexml | yes | yes | |
| [snappy](./extension-notes#snappy) | yes, untested | yes, untested | |
| soap | yes | yes | |
| sockets | yes | yes | |
| sodium | yes | yes | |
Expand Down

0 comments on commit 29cdfbb

Please sign in to comment.