php8.5
Home/ Manual/ reference / parallel/ Installation

Installation

parallel requires a build of PHP with ZTS (Zend Thread Safety) enabled (--enable-zts, or on non-Windows systems prior to PHP 8.0.0, --enable-maintainer-zts)

Required

parallel requires a build of PHP with ZTS (Zend Thread Safety) enabled (--enable-zts, or on non-Windows systems prior to PHP 8.0.0, --enable-maintainer-zts)

Caution

Zend Thread Safety cannot be enabled post build; it is a build time configuration option.

parallel should build anywhere there is a working Posix Threads header (pthread.h) and ZTS build of PHP, including Windows (using the pthread-w32 project from redhat).

Install

parallel releases are hosted by PECL and the source code by github, the easiest route to installation is the normal PECL route: Packageparallel.

Windows users can download prebuilt release binaries from the PECL website.

Caution

Windows users need to take the additional step of adding pthreadVC?.dll (distributed with Windows releases) to their PATH.

Source: reference/parallel/setup.xml · from the official PHP manual (php/doc-en)