You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en/guide/extension-notes.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,8 +76,7 @@ and this extension cannot be compiled into php by static linking, so it cannot b
76
76
77
77
## xdebug
78
78
79
-
1. Xdebug is a Zend extension. The functions of Xdebug depend on PHP's Zend engine and underlying code.
80
-
If you want to statically compile it into PHP, you may need a huge amount of patch code, which is not feasible.
79
+
1. Xdebug is only buildable as a shared extension. On Linux, you need to use static-php-cli with SPC_LIBC=glibc and then compile php-xdebug from source with the option `--with-php-config=/path/to/buildroot/bin/php-config`.
81
80
2. The macOS platform can compile an xdebug extension under PHP compiled on the same platform,
82
81
extract the `xdebug.so` file, and then use the `--no-strip` parameter in static-php-cli to retain the debug symbol table and add the `ffi` extension.
83
82
The compiled `./php` binary can be configured and run by specifying the INI, eg `./php -d 'zend_extension=/path/to/xdebug.so' your-code.php`.
@@ -149,3 +148,9 @@ Parallel is only supported on PHP 8.0 ZTS and above.
149
148
150
149
1. The [SPX extension](https://github.com/NoiseByNorthwest/php-spx) only supports NTS mode.
151
150
2. SPX does not support Windows, and the official repository does not support static compilation. static-php-cli uses a [modified version](https://github.com/static-php/php-spx).
151
+
152
+
## mimalloc
153
+
154
+
1. This is not technically an extension, but a library.
155
+
2. Building with `--with-libs="mimalloc"` on Linux or macOS will override the default allocator.
156
+
3. This is experimental for now, but is recommended in threaded environments.
0 commit comments