Install this package:
emerge -a dev-lang/php
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 8.5.12 | 8 | ~alpha amd64 ~arm arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc x86 ~x64-macos | $(ver_cut 1-2) |
| 8.4.27 | 8 | ~alpha amd64 ~arm arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc x86 ~x64-macos | $(ver_cut 1-2) |
| 7.4.33_p20261019 | 8 | ~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos | $(ver_cut 1-2) |
| 7.4.33_p20261009 | 8 | ~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos | $(ver_cut 1-2) |
| 7.3.33_p20261024 | 8 | ~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos | $(ver_cut 1-2) |
| 5.6.40_p20261024 | 8 | ~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 | $(ver_cut 1-2) |
<pkgmetadata>
<maintainer type="project">
<email>php-bugs@gentoo.org</email>
<name>PHP</name>
</maintainer>
<use>
<flag name="apparmor">
Support FPM application confinement through
<pkg>sys-libs/libapparmor</pkg>
</flag>
<flag name="argon2">Enable password hashing algorithm from <pkg>app-crypt/argon2</pkg></flag>
<flag name="bcmath">Add support for libbcmath</flag>
<flag name="capstone">
Support opcache JIT disassembly through <pkg>dev-libs/capstone</pkg>
</flag>
<flag name="cli">Enable CLI SAPI</flag>
<flag name="ctype">Enable ctype functions</flag>
<flag name="embed">Enable embed SAPI </flag>
<flag name="enchant">Add supports Enchant spelling library. </flag>
<flag name="ffi"> Add foreign function interface (ffi extension) support</flag>
<flag name="fileinfo"> Add fileinfo extension support</flag>
<flag name="filter">Add filter extension support</flag>
<flag name="flatfile">Add dbm support for flat files</flag>
<flag name="fpm">Enable the FastCGI Process Manager SAPI</flag>
<flag name="gd">Adds support for gd (bundled with PHP)</flag>
<flag name="hash">Enable the hash extension</flag>
<flag name="inifile">Add dbm support for .ini files</flag>
<flag name="ipv6">
Support IPv6 connectivity in fopen and friends, and v6 address
conversions in functions like inet_pton and inet_ntop.
</flag>
<flag name="jit">Enable PCRE JIT support</flag>
<flag name="json">Enable JSON support</flag>
<flag name="ldap-sasl">Add SASL support for the PHP LDAP extension</flag>
<flag name="lmdb">Enable support for <pkg>dev-db/lmdb</pkg> db backend</flag>
<flag name="intl">
Enables the intl extension for extended internalization support
</flag>
<flag name="lto">
Build with link-time optimization; with GCC the VM files that use
global register variables are kept out of LTO
</flag>
<flag name="opcache">
Enables built-in opcode cache, replacing pecl-apc et al.
</flag>
<flag name="opcache-jit">
Enable Just In Time (JIT) compilation within the opcache extension
</flag>
<flag name="pcntl">Add support for process creation functions</flag>
<flag name="pdo">Enable the bundled PDO extensions</flag>
<flag name="pgo">
Optimize with profile-guided optimization trained on the test suite
(GCC only, ignored with Clang); the VM executor (zend_execute.c) is
left out of the profile and built at -O2, which is faster for it
</flag>
<flag name="phar">
Enables the phar extension to provide phar archive support
</flag>
<flag name="phpdbg">
Enable the PHP Debug Command Line SAPI (like gdb for php)
</flag>
<flag name="session-mm">
Include <pkg>dev-libs/mm</pkg> support for session storage
</flag>
<flag name="sharedmem">Add support for shared memory use</flag>
<flag name="simplexml">Support for SimpleXML</flag>
<flag name="sodium">
Enable support for crypto through <pkg>dev-libs/libsodium</pkg>
</flag>
<flag name="sybase-ct">Add support for Sybase-CT</flag>
<flag name="sysvipc">
Support for System V-compatible inter-process communication
</flag>
<flag name="test-full">Run slower tests</flag>
<flag name="tokenizer">Add support for the PHP file parser</flag>
<flag name="tokyocabinet">
Enable support for <pkg>dev-db/tokyocabinet</pkg> db backend</flag>
<flag name="xmlreader">Enable XMLReader support</flag>
<flag name="xmlwriter">Enable XMLWriter support</flag>
<flag name="xslt">Enable the XSL extension</flag>
<flag name="vpx">Enable webp support for GD in php-5.x</flag>
<flag name="wddx">Add support for Web Distributed Data eXchange</flag>
<flag name="webp">Enable webp support for GD in php-7.x</flag>
</use>
<upstream>
<remote-id type="github">php/php-src</remote-id>
</upstream>
</pkgmetadata>
Manage flags for this package:
euse -i <flag> -p dev-lang/php |
euse -E <flag> -p dev-lang/php |
euse -D <flag> -p dev-lang/php
| Flag | Description | 8.5.12 | 8.4.27 | 7.4.33_p20261019 | 7.4.33_p20261009 | 7.3.33_p20261024 | 5.6.40_p20261024 |
|---|---|---|---|---|---|---|---|
| ${IUSE} | ⚠️ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| acl | ⚠️ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| apparmor | Support FPM application confinement through <pkg>sys-libs/libapparmor</pkg> | ✓ | ✓ | ✗ | ✗ | ✗ | ✗ |
| argon2 | Enable password hashing algorithm from <pkg>app-crypt/argon2</pkg> | ✓ | ✓ | ✓ | ✓ | ✓ | ✗ |
| avif | ⚠️ | ✓ | ✓ | ✗ | ✗ | ✗ | ✗ |
| bcmath | Add support for libbcmath | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| berkdb | ⚠️ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| bzip2 | ⚠️ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| calendar | ⚠️ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| capstone | Support opcache JIT disassembly through <pkg>dev-libs/capstone</pkg> | ✓ | ✓ | ✗ | ✗ | ✗ | ✗ |
| cdb | ⚠️ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| cjk | ⚠️ | ✗ | ✗ | ✓ | ✓ | ✓ | ✓ |
| crypt | ⚠️ | ✗ | ✗ | ✗ | ✗ | ✗ | ✓ |
| ctype | Enable ctype functions | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ |
| curl | Use curl for http,https and ftp backends ⚠️ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| debug | Enable assertions to allow for easier debugging of programs that link to spidermonkey -- note this will often crash software on regular end-user systems ⚠️ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| enchant | Add supports Enchant spelling library. | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| exif | ⚠️ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| ffi | Add foreign function interface (ffi extension) support | ✓ | ✓ | ✓ | ✓ | ✗ | ✗ |
| fileinfo | Add fileinfo extension support | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ |
| filter | Add filter extension support | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ |
| firebird | ⚠️ | ✗ | ✗ | ✓ | ✓ | ✓ | ✓ |
| flatfile | Add dbm support for flat files | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ |
| ftp | ⚠️ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| gd | Adds support for gd (bundled with PHP) | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| gdbm | ⚠️ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| gmp | ⚠️ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| hash | Enable the hash extension | ✗ | ✗ | ✗ | ✗ | ⊕ | ⊕ |
| iconv | ⚠️ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ |
| imap | ⚠️ | ✗ | ✗ | ✓ | ✓ | ✓ | ✓ |
| inifile | Add dbm support for .ini files | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| intl | Enables the intl extension for extended internalization support | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| iodbc | ⚠️ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| ipv6 | Support IPv6 connectivity in fopen and friends, and v6 address conversions in functions like inet_pton and inet_ntop. | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| jit | Enable PCRE JIT support | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ | ✗ |
| jpeg | ⚠️ | ✓ | ✓ | ✗ | ✗ | ✗ | ✗ |
| json | Enable JSON support | ✗ | ✗ | ⊕ | ⊕ | ⊕ | ⊕ |
| kerberos | ⚠️ | ✗ | ✗ | ✓ | ✓ | ✓ | ✓ |
| ldap | ⚠️ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| ldap-sasl | Add SASL support for the PHP LDAP extension | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| libedit | ⚠️ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| lmdb | Enable support for <pkg>dev-db/lmdb</pkg> db backend | ✓ | ✓ | ✓ | ✓ | ✓ | ✗ |
| lto | Build with link-time optimization; with GCC the VM files that use global register variables are kept out of LTO | ✓ | ✓ | ✗ | ✗ | ✗ | ✗ |
| mhash | ⚠️ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| mssql | ⚠️ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| mysql | ⚠️ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| mysqli | ⚠️ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| nls | ⚠️ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| oci8-instant-client | ⚠️ | ✗ | ✗ | ✓ | ✓ | ✓ | ✓ |
| odbc | Enable ODBC and SQL backend options ⚠️ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| opcache | Enables built-in opcode cache, replacing pecl-apc et al. | ✗ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ |
| opcache-jit | Enable Just In Time (JIT) compilation within the opcache extension | ⊕ | ⊕ | ✗ | ✗ | ✗ | ✗ |
| pcntl | Add support for process creation functions | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| pdo | Enable the bundled PDO extensions | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| pgo | Optimize with profile-guided optimization trained on the test suite (GCC only, ignored with Clang); the VM executor (zend_execute.c) is left out of the profile and built at -O2, which is faster for it | ✓ | ✓ | ✗ | ✗ | ✗ | ✗ |
| phar | Enables the phar extension to provide phar archive support | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ |
| png | ⚠️ | ✓ | ✓ | ✗ | ✗ | ✗ | ✗ |
| posix | ⚠️ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ |
| postgres | Enable PCP Performance Metrics Domain Agent (PMDA) for collecting metrics about the PostgreSQL database ⚠️ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| qdbm | ⚠️ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| readline | ⚠️ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| recode | ⚠️ | ✗ | ✗ | ✗ | ✗ | ✓ | ✓ |
| selinux | ⚠️ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| session | ⚠️ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ |
| session-mm | Include <pkg>dev-libs/mm</pkg> support for session storage | ✓ | ✓ | ✓ | ✓ | ✓ | ✗ |
| sharedmem | Add support for shared memory use | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| simplexml | Support for SimpleXML | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ |
| snmp | Enable PCP Performance Metrics Domain Agent (PMDA) for collecting metrics from SNMP ⚠️ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| soap | ⚠️ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| sockets | ⚠️ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| sodium | Enable support for crypto through <pkg>dev-libs/libsodium</pkg> | ✓ | ✓ | ✓ | ✓ | ✓ | ✗ |
| spell | ⚠️ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| sqlite | ⚠️ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| ssl | ⚠️ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| sybase-ct | Add support for Sybase-CT | ✗ | ✗ | ✗ | ✗ | ✗ | ✓ |
| systemd | ⚠️ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| sysvipc | Support for System V-compatible inter-process communication | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| test | ⚠️ | ✓ | ✓ | ✓ | ✓ | ✓ | ✗ |
| test-full | Run slower tests | ✓ | ✓ | ✗ | ✗ | ✗ | ✗ |
| tidy | ⚠️ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| tokenizer | Add support for the PHP file parser | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ |
| tokyocabinet | Enable support for <pkg>dev-db/tokyocabinet</pkg> db backend | ✓ | ✓ | ✓ | ✓ | ✓ | ✗ |
| truetype | ⚠️ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| unicode | ⚠️ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| valgrind | ⚠️ | ✓ | ✓ | ✗ | ✗ | ✗ | ✗ |
| vpx | Enable webp support for GD in php-5.x | ✗ | ✗ | ✗ | ✗ | ✗ | ✓ |
| wddx | Add support for Web Distributed Data eXchange | ✗ | ✗ | ✗ | ✗ | ✓ | ✓ |
| webp | Enable webp support for GD in php-7.x | ✓ | ✓ | ✓ | ✓ | ✓ | ✗ |
| xml | Includes all UPS drivers that use XML. ⚠️ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ |
| xmlreader | Enable XMLReader support | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| xmlrpc | ⚠️ | ✗ | ✗ | ✓ | ✓ | ✓ | ✓ |
| xmlwriter | Enable XMLWriter support | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| xpm | ⚠️ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| xslt | Enable the XSL extension | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| zip | ⚠️ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| zlib | ⚠️ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| Type | File | Size | Versions |
|---|---|---|---|
| DIST | php-8.4.27.tar.xz | 13862944 bytes | 8.4.27 |
| DIST | php-8.5.12.tar.xz | 14554312 bytes | 8.5.12 |
| Type | File | Size |
|---|---|---|
| DIST | php-5.6.40-patches-7.tar.xz | 93540 bytes |
| DIST | php-7.3.33-patches-2.tar.xz | 92584 bytes |
| DIST | php-7.4.33-patches-3.tar.xz | 29660 bytes |
| DIST | php-7.4.33-patches-5.tar.xz | 24528 bytes |