How to install PCNTL extension in Windows?

前端 未结 2 1800
死守一世寂寞
死守一世寂寞 2021-01-01 18:47

I am running PHPUnit in Windows and trying to install PHPUnit via composer.json:

\"phpunit/php-invoker\": \"*\"

...with this depen

2条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-01 19:10

    You can't install ext-pcntl extension on Windows. Accordingly to the PHP documentation:

    Currently, this module will not function on non-Unix platforms (Windows).

    If you want to install PHPUnit all you need is the PHPUnit library:

    composer require phpunit/phpunit 4.*
    

    You don't need php-invoker to install PUPUnit. But if you also need the php-invoker library you are out of luck. Try using Vagrant or a plain VM with Linux distributions like Ubuntu, Debian or Mint.

提交回复
热议问题