The kill() method has been removed from PECL pthreads library version 3. See manual from archive: https://web.archive.org/web/20210410123359/https://www.php.net/manual/en/thread.kill.php Warning: This method has been removed in pthreads v3. Warning: The programmer should not ordinarily kill Threads by force. So as you can see removed in new version: https://www.php.net/manual/en/class.thread.php Now what’s alternate for kill or terminate the proccess from out of class that
Tag: process
Symfony2 Process component – unable to create pipe and launch a new process
I’m using the Symfony2 Process component to manually manage a pool of processes. In the example below I restart 2 simple processes every 2 seconds and monitor what happens. The application breaks after restarting these processes a few hundred times. Execution is stopped and I get the following PHP warning: and then the following exception is thrown by the Symfony