---
# System prepended metadata

title: PHP Static on FreeBSD

---

# Static PHP on FreeBSD


| Extension                      | BUILD              | RUN                |
|--------------------------------|--------------------|--------------------|
| bcmath                         | :heavy_check_mark: |
| bz2                            | :heavy_check_mark: |
| calendar                       | :heavy_check_mark: |
| ctype                          | :heavy_check_mark: |
| curl                           | :heavy_check_mark: |
| dba                            | pending [^1]       |
| dom                            | :heavy_check_mark: |
| enchant                        | :heavy_check_mark: |
| exif                           | :heavy_check_mark: |
| ffi [^2]                       | :heavy_check_mark: |
| filter                         | :heavy_check_mark: |
| fileinfo                       | :heavy_check_mark: |
| ftp                            | :heavy_check_mark: |
| gd                             | pending [^3]       |
| gettext                        | :heavy_check_mark: |
| gmp                            | :heavy_check_mark: |
| iconv                          | :heavy_check_mark: |
| imap [^4]                      | :heavy_check_mark: |
| intl                           | :heavy_check_mark: |
| ldap                           | :heavy_check_mark: |
| mbstring/mbregex               | pending [^5]       |
| mysqli                         | :heavy_check_mark: |
| mysqlnd                        | :heavy_check_mark: | :heavy_check_mark: |
| odbc                           | :heavy_check_mark: |
| opcache                        | :x:                | :x:                |
| pcntl                          | :heavy_check_mark: |
| pdo                            | :heavy_check_mark: |
| pdo_dblib                      | :heavy_check_mark: |
| pdo_firebird                   | :heavy_check_mark: |
| pdo_mysql                      | pending [^6]       |
| pdo_pgsql                      | :heavy_check_mark: |
| pdo_sqlite                     | :heavy_check_mark: |
| pgsql                          | :heavy_check_mark: |
| phar                           | :heavy_check_mark: |
| posix                          | :heavy_check_mark: |
| pspell                         | :heavy_check_mark: |
| readline                       | :heavy_check_mark: |
| session                        | :heavy_check_mark: |
| shmop                          | :heavy_check_mark: |
| simplexml                      | :heavy_check_mark: |
| snmp                           | :heavy_check_mark: |
| soap                           | :heavy_check_mark: |
| sockets                        | :heavy_check_mark: |
| sodium                         | :heavy_check_mark: |
| sqlite3                        | :heavy_check_mark: |
| sysvmsg                        | :heavy_check_mark: |
| sysvsem                        | :heavy_check_mark: |
| sysvshm                        | :heavy_check_mark: |
| tidy                           | :heavy_check_mark: |
| tokenizer                      | :heavy_check_mark: |
| xml                            | :heavy_check_mark: |
| xmlreader                      | :heavy_check_mark: |
| xmlwriter                      | :heavy_check_mark: |
| xsl                            | :heavy_check_mark: |
| zip                            | :heavy_check_mark: |
| zlib                           | :heavy_check_mark: |


# Extension Notes

Because it is a static compilation, extensions will not compile or run 100% perfectly, 
and different extensions have different requirements for PHP and the environment, 
which will be listed one by one here.

[^1]: Multiple options to consider.

[^2]: May not be supported yet: Due to limitations of the system, although the ffi extension can be compiled successfully, it cannot be used to load other `so` extensions. The prerequisite to support loading `so` extensions is dynamic compilation.

[^3]: gd Extension relies on more additional Graphics libraries: `freetype, libjpeg, libavif, libwebp`.

[^4]: imap : Kerberos is not supported. ext-imap is not thread safe due to the underlying c-client. It's not possible to use it in --enable-zts builds.

[^5]: mbstring/mbregex: OPTIONS

[^6]: pdo_mysql: OPTIONS