Php/docs/parallel.setup

提供:Dev Guides
< Php
2020年12月14日 (月) 10:57時点におけるNotes (トーク | 投稿記録)による版 (autoload)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
移動先:案内検索

Installation

要件

parallel requires a build of PHP with ZTS (Zend Thread Safety) enabled ( --enable-maintainer-zts or --enable-zts on Windows )

警告 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).


インストール手順

parallel releases are hosted by PECL and the source code by » github, the easiest route to installation is the normal PECL route: » https://pecl.php.net/package/parallel.

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

警告 Windows users need to take the additional step of adding pthreadVC2.dll (distributed with Windows releases) to their PATH.