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

Add ffi notes for linux #7

Merged
merged 1 commit into from
Dec 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/en/guide/extension-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,8 @@ Snappy configuration may break features of other extensions. Use with caution. S

1. password-argon2 is not a standard extension, it is an additional algorithm for the `password_hash` function.
2. On Linux systems, `password-argon2` dependency `libargon2` conflicts with the `libsodium` library.

## ffi

1. Due to limitations of the Linux system, although the ffi extension can be compiled successfully, it cannot be used to load other `so` extensions.
2. The prerequisite for supporting loading of so extension is non-static compilation, but dynamic linking conflicts with the purpose of this project.
2 changes: 1 addition & 1 deletion docs/en/guide/extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
| enchant | | | | |
| event | yes | yes | | |
| exif | yes | yes | yes | |
| ffi | yes | yes | | |
| [ffi](./extension-notes#ffi) | no | yes | | |
| filter | yes | yes | yes | |
| fileinfo | yes | yes | yes | |
| ftp | yes | yes | yes | |
Expand Down
5 changes: 5 additions & 0 deletions docs/zh/guide/extension-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,8 @@ Snappy 配置可能会破坏其他扩展的功能,请谨慎使用。相关链

1. password-argon2不是一个标准的扩展,它是 `password_hash` 函数的额外算法。
2. 在Linux系统,password-argon2 的依赖库 `libargon2` 与 `libsodium` 库冲突。

## ffi

1. 因为 Linux 系统的限制,虽然可以成功编译 ffi 扩展,但无法使用它加载其他 `so` 扩展。
2. 支持加载 so 扩展的前提是非静态编译,但动态编译和本项目的目的冲突。
2 changes: 1 addition & 1 deletion docs/zh/guide/extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
| enchant | | | | |
| event | yes | yes | | |
| exif | yes | yes | yes | |
| ffi | yes | yes | | |
| [ffi](./extension-notes#ffi) | no | yes | | |
| filter | yes | yes | yes | |
| fileinfo | yes | yes | yes | |
| ftp | yes | yes | yes | |
Expand Down