Install this package:
emerge -a dev-lang/php
If the package is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask dev-lang/php
Or alternatively:
emerge --autounmask-write -a dev-lang/php
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 8.5.5 | 8 | ~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos | $(ver_cut 1-2) |
| 8.4.20 | 8 | ~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos | $(ver_cut 1-2) |
| 8.3.30-r1 | 8 | ~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos | $(ver_cut 1-2) |
| 8.3.29 | 8 | ~alpha amd64 ~arm arm64 ~hppa ~loong ~mips ppc ~ppc64 ~riscv ~s390 ~sparc x86 ~x64-macos | $(ver_cut 1-2) |
| 8.3.26 | 8 | ~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~x64-macos | $(ver_cut 1-2) |
| 8.2.30 | 8 | ~alpha amd64 ~arm arm64 ~hppa ~loong ~mips ppc ~ppc64 ~riscv ~s390 ~sparc x86 ~x64-macos | $(ver_cut 1-2) |
| 8.2.29 | 8 | ~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~x64-macos | $(ver_cut 1-2) |
<pkgmetadata>
<maintainer type="project">
<email>php-bugs@gentoo.org</email>
<name>PHP</name>
</maintainer>
<maintainer type="person">
<email>mjo@gentoo.org</email>
<name>Michael Orlitzky</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">
Enable the BCMath Arbitrary Precision Mathematics extension
</flag>
<flag name="capstone">
Support opcache JIT disassembly through
<pkg>dev-libs/capstone</pkg>
</flag>
<flag name="cli">
Enable the Command-Line Interface (CLI) SAPI
</flag>
<flag name="ctype">
Enable the Character type checking (ctype) extension
</flag>
<flag name="embed">
Enable embed SAPI
</flag>
<flag name="enchant">
Enable the Enchant spelling library extension using
<pkg>app-text/enchant</pkg>
</flag>
<flag name="ffi">
Enable the Foreign Function Interface (FFI) extension using
<pkg>dev-libs/libffi</pkg>
</flag>
<flag name="fileinfo">
Enable the File Information extension
</flag>
<flag name="filter">
Enable the Data Filtering extension
</flag>
<flag name="flatfile">
Add dbm support for flat files
</flag>
<flag name="fpm">
Enable the FastCGI Process Manager SAPI
</flag>
<flag name="gd">
Enable the Image Processing and GD extension (requires
<pkg>media-libs/libjpeg-turbo</pkg> and
<pkg>media-libs/libpng</pkg>)
</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="inifile">
Add dbm support for .ini files
</flag>
<flag name="jit">
Enable PCRE JIT support
</flag>
<flag name="ldap-sasl">
Add SASL support for the PHP LDAP extension using
<pkg>dev-libs/cyrus-sasl</pkg>
</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="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">
Enable the Process Control extension
</flag>
<flag name="pdo">
Enable the PHP Data Objects extension
</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">
Enable the shmop extension
</flag>
<flag name="simplexml">
Enable the SimpleXML extension
</flag>
<flag name="sodium">
Enable support for crypto through <pkg>dev-libs/libsodium</pkg>
</flag>
<flag name="sysvipc">
Enable the PHP System-V semaphore, shared memory and IPC extension
</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 the XMLReader extension
</flag>
<flag name="xmlwriter">
Enable the XMLWriter extension
</flag>
<flag name="xslt">
Build the XSL extension
</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.5 | 8.4.20 | 8.3.30-r1 | 8.3.29 | 8.3.26 | 8.2.30 | 8.2.29 |
|---|---|---|---|---|---|---|---|---|
| acl | Add support for Access Control Lists | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| apparmor | Support FPM application confinement through <pkg>sys-libs/libapparmor</pkg> | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| argon2 | Enable password hashing algorithm from <pkg>app-crypt/argon2</pkg> | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| avif | Add AV1 Image Format (AVIF) support | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| bcmath | Enable the BCMath Arbitrary Precision Mathematics extension | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| berkdb | Add support for sys-libs/db (Berkeley DB) | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| bzip2 | Enable bzip2 compression support | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| calendar | Add support for calendars (not using mcal!) | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| capstone | Support opcache JIT disassembly through <pkg>dev-libs/capstone</pkg> | ✓ | ✓ | ✓ | ✓ | ✓ | ✗ | ✗ |
| cdb | Add support for the CDB database engine from the author of qmail | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| cjk | Add support for Multi-byte character languages (Chinese, Japanese, Korean) | ✗ | ✗ | ✗ | ✗ | ✗ | ✓ | ✓ |
| ctype | Enable the Character type checking (ctype) extension | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ |
| curl | Add support for client-side URL transfer library | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| debug | Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| enchant | Enable the Enchant spelling library extension using <pkg>app-text/enchant</pkg> | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| exif | Add support for reading EXIF headers from JPEG and TIFF images | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| ffi | Enable the Foreign Function Interface (FFI) extension using <pkg>dev-libs/libffi</pkg> | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| fileinfo | Enable the File Information extension | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ |
| filter | Enable the Data Filtering extension | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ |
| flatfile | Add dbm support for flat files | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ |
| ftp | Add FTP (File Transfer Protocol) support | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| gd | Enable the Image Processing and GD extension (requires <pkg>media-libs/libjpeg-turbo</pkg> and <pkg>media-libs/libpng</pkg>) | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| gdbm | Add support for sys-libs/gdbm (GNU database libraries) | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| gmp | Add support for dev-libs/gmp (GNU MP library) | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| iconv | Enable support for the iconv character set conversion library | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ |
| imap | Add support for IMAP (Internet Mail Application Protocol) | ✗ | ✗ | ✓ | ✓ | ✓ | ✓ | ✓ |
| inifile | Add dbm support for .ini files | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| intl | Enables the intl extension for extended internalization support | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| iodbc | Add support for iODBC library | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| 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 | Add JPEG image support | ✓ | ✓ | ✓ | ✓ | ✓ | ✗ | ✗ |
| kerberos | Add kerberos support | ✗ | ✗ | ✓ | ✓ | ✓ | ✓ | ✓ |
| ldap | Add LDAP support (Lightweight Directory Access Protocol) | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| ldap-sasl | Add SASL support for the PHP LDAP extension using <pkg>dev-libs/cyrus-sasl</pkg> | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| libedit | Use the libedit library (replacement for readline) | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| lmdb | Enable support for <pkg>dev-db/lmdb</pkg> db backend | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| mhash | Add support for the mhash library | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| mssql | Add support for Microsoft SQL Server database | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| mysql | Add mySQL Database support | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| mysqli | Add support for the improved mySQL libraries | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| nls | Add Native Language Support (using gettext - GNU locale utilities) | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| oci8-instant-client | Use dev-db/oracle-instantclient-basic as Oracle provider instead of requiring a full Oracle server install | ✗ | ✗ | ✗ | ✗ | ✗ | ✓ | ✓ |
| odbc | Add ODBC Support (Open DataBase Connectivity) | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| opcache | Enables built-in opcode cache, replacing pecl-apc et al. | ✗ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ |
| opcache-jit | Enable Just In Time (JIT) compilation within the opcache extension | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ |
| pcntl | Enable the Process Control extension | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| pdo | Enable the PHP Data Objects extension | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| phar | Enables the phar extension to provide phar archive support | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ |
| png | Add support for libpng (PNG images) | ✓ | ✓ | ✓ | ✓ | ✓ | ✗ | ✗ |
| posix | Add support for POSIX-compatible functions | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ |
| postgres | Add support for the postgresql database | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| qdbm | Add support for the qdbm (Quick Database Manager) library | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| readline | Enable support for libreadline, a GNU line-editing library that almost everyone wants | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| selinux | !!internal use only!! Security Enhanced Linux support, this must be set by the selinux profile or breakage will occur | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| session | Add persistent session support | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ |
| session-mm | Include <pkg>dev-libs/mm</pkg> support for session storage | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| sharedmem | Enable the shmop extension | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| simplexml | Enable the SimpleXML extension | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ |
| snmp | Add support for the Simple Network Management Protocol if available | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| soap | Add support for SOAP (Simple Object Access Protocol) | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| sockets | Add support for tcp/ip sockets | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| sodium | Enable support for crypto through <pkg>dev-libs/libsodium</pkg> | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| spell | Add dictionary support | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| sqlite | Add support for sqlite - embedded sql database | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| ssl | Add support for SSL/TLS connections (Secure Socket Layer / Transport Layer Security) | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| systemd | Enable use of systemd-specific libraries and features like socket activation or session tracking | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| sysvipc | Enable the PHP System-V semaphore, shared memory and IPC extension | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| test | Enable dependencies and/or preparations necessary to run tests (usually controlled by FEATURES=test but can be toggled independently) | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| tidy | Add support for HTML Tidy | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| tokenizer | Add support for the PHP file parser | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ |
| tokyocabinet | Enable support for <pkg>dev-db/tokyocabinet</pkg> db backend | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| truetype | Add support for FreeType and/or FreeType2 fonts | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| unicode | Add support for Unicode | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| valgrind | Enable annotations for accuracy. May slow down runtime slightly. Safe to use even if not currently using dev-debug/valgrind | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| webp | Add support for the WebP image format | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| xml | Add support for XML files | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ | ⊕ |
| xmlreader | Enable the XMLReader extension | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| xmlwriter | Enable the XMLWriter extension | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| xpm | Add support for XPM graphics format | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| xslt | Build the XSL extension | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| zip | Enable support for ZIP archives | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| zlib | Add support for zlib compression | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| Type | File | Size | Versions |
|---|---|---|---|
| DIST | php-8.2.29.tar.xz | 12162364 bytes | 8.2.29 |
| DIST | php-8.2.30.tar.xz | 12153868 bytes | 8.2.30 |
| DIST | php-8.3.26.tar.xz | 12581368 bytes | 8.3.26 |
| DIST | php-8.3.29.tar.xz | 12601944 bytes | 8.3.29 |
| DIST | php-8.4.20.tar.xz | 13685708 bytes | 8.4.20 |
| DIST | php-8.5.5.tar.xz | 14355236 bytes | 8.5.5 |
| Type | File | Size |
|---|---|---|
| DIST | php-8.3.30.tar.xz | 12609216 bytes |