Skip to content

Commit fa6fa1c

Browse files
committed
Add docs
1 parent f8c8300 commit fa6fa1c

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

docs/en/faq/index.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ So on macOS, you can **directly** use SPC to build statically compiled PHP binar
4444
2. You will get `buildroot/modules/xdebug.so` and `buildroot/bin/php`.
4545
3. The `xdebug.so` file could be used for php that version and thread-safe are the same.
4646

47+
For the Windows platform, since officially built extensions (such as `php_yaml.dll`) force the use of the `php8.dll` dynamic library as a link, and statically built PHP does not include any dynamic libraries other than system libraries,
48+
php.exe built by static-php cannot load officially built dynamic extensions. Since static-php-cli does not yet support building dynamic extensions, there is currently no way to load dynamic extensions with static-php.
49+
50+
However, Windows can normally use the `FFI` extension to load other dll files and call them.
51+
4752
## Can it support Oracle database extension?
4853

4954
Some extensions that rely on closed source libraries, such as `oci8`, `sourceguardian`, etc.,

docs/zh/faq/index.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ buildroot/bin/php -d "zend_extension=/path/to/php{PHP_VER}-{ts/nts}/xdebug.so" -
4141
2. 你将获得 `buildroot/modules/xdebug.so``buildroot/bin/php`
4242
3. `xdebug.so` 文件可用于版本和线程安全相同的 php。
4343

44+
对于 Windows 平台,由于官方构建的扩展(如 `php_yaml.dll`)强制使用了 `php8.dll` 动态库作为链接,静态构建的 PHP 不包含任何系统库以外的动态库,
45+
所以 Windows 下无法加载官方构建的动态扩展。 由于 static-php-cli 还暂未支持构建动态扩展,所以目前还没有让 static-php 加载动态扩展的方法。
46+
47+
不过,Windows 可以正常使用 `FFI` 扩展加载其他的 dll 文件并调用。
48+
4449
## 可以支持 Oracle 数据库扩展吗?
4550

4651
部分依赖库闭源的扩展,如 `oci8``sourceguardian` 等,它们没有提供纯静态编译的依赖库文件(`.a`),仅提供了动态依赖库文件(`.so`),

0 commit comments

Comments
 (0)