walkor / walkor/workerman-todpole
start_for_win.bat Fatal error, no pcntl extension
- Dominant language
- PHP
- Stars
- 1.8k
- Forks
- 658
- PR merge metrics
- No merged PRs in 30d
Description
While running **start_for_win.bat**
Fatal error: Call to undefined function Workerman\Lib\pcntl_signal() in \Workerman\Lib\Timer.php on [line 56](https://github.com/walkor/workerman-todpole/blob/master/Workerman/Lib/Timer.php#L56):
```
pcntl_signal(SIGALRM, array('\Workerman\Lib\Timer', 'signalHandle'), false);
```
> http://php.net/manual/en/intro.pcntl.ph
> Note: This extension is not available on Windows platforms
> http://php.net/manual/en/pcntl.installation.php
> Note: Currently, this module will not function on non-Unix platforms (Windows).
Do you have any compatible alternative?
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the failure with start_for_win.bat, then inspect Workerman/Lib/Timer.php at line 56 and the referenced pcntl_signal call. Determine how timer handling should work on Windows, and consider the issue done when the Windows startup no longer raises this fatal error while preserving the timer behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100