2

Why do I get this one on some PHP distributions and not others..

posix_kill($row['pid'], SIGKILL);
yaitloutou
  • 1,691
  • 19
  • 23
clarkk
  • 27,151
  • 72
  • 200
  • 340

1 Answers1

2

SIGKILL is a constant belonging to the PCNTL extension. You may get undefined errors if your PHP version doesn't have the PCNTL extension installed or enabled.

The manual says "Process Control support in PHP is not enabled by default. You have to compile the CGI or CLI version of PHP with --enable-pcntl configuration option when compiling PHP to enable Process Control support."

scrowler
  • 24,273
  • 9
  • 60
  • 92