WordPress/wordpress-playground

PHP: Build with pthreads support

adamziel opened this issue · 0 comments

Pthreads are required to run the pcntl extensions and functions like pcntl_fork and pcntl_exec. Full PHPUnit support hinges on this, and AFAIR there's a few wp-cli commands also relying on threads.

Turns out supporting pthreads offers no clear benefit as WordPress-related PHP libraries typically don't require it. What wp-cli and PHPunit both need is proc_open.

The implementation is explored in #346

Related:

cc @dmsnell @danielbachhuber @sejas