Php/docs/pthreads.requirements

提供:Dev Guides
< Php
移動先:案内検索

要件

pthreads を使うには、ビルド時に ZTS を有効 ( --enable-maintainer-zts、あるいは Windows なら --enable-zts ) にする必要があります。

警告 ZTS はビルド時の設定オプションです。ビルドした後で変更することはできません。


pthreads は、Posix スレッドのヘッダファイル (pthread.h) と ZTS 版の PHP があればどこでもビルドできます。 Windows でもビルド可能で、その際には redhat の pthread-w32 プロジェクトを利用します。