Bug #70708 [NEW]: Call to undefined function pcntl_sigwaitinfo

From: Date: Tue, 13 Oct 2015 13:10:44 +0000
Subject: Bug #70708 [NEW]: Call to undefined function pcntl_sigwaitinfo
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-196594@lists.php.net to get a copy of this message
From: damien dot lasserre at gmail dot com Operating system: OS X 10.10.5 PHP version: 7.0Git-2015-10-13 (Git) Package: PCNTL related Bug Type: Bug Bug description:Call to undefined function pcntl_sigwaitinfo Description: ------------ --- From manual page: http://www.php.net/function.pcntl-sigwaitinfo --- Hi, When i try to use pcntl_sigwaitinfo function, an error occur : Uncaught Error: Call to undefined function pcntl_sigwaitinfo, but pcntl extension was installed and activated... <?php //... while($running) { /** @var int $pid */ $pid = pcntl_waitpid(-1, $status, WNOHANG); if($pid) { $sig = pcntl_wstopsig($status); if($sig === SIGUSR1) { $this->restartService($pid); } } /** Restart all services if SIGHUP send as SMP process */ pcntl_sigwaitinfo(array(SIGUSR1), $info); if((int)$info['signo'] === SIGUSR1) { $this->restart(); } } //... ?> Below: (php -i | grep pcntl) pcntl pcntl support => enabled OLDPWD => /tmp/php-src/ext/pcntl $_SERVER['OLDPWD'] => /tmp/php-src/ext/pcntl Regards. -- Edit bug report at https://bugs.php.net/bug.php?id=70708&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=70708&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=70708&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=70708&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=70708&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=70708&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=70708&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=70708&r=needscript Try newer version: https://bugs.php.net/fix.php?id=70708&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=70708&r=support Expected behavior: https://bugs.php.net/fix.php?id=70708&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=70708&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=70708&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=70708&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70708&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=70708&r=dst IIS Stability: https://bugs.php.net/fix.php?id=70708&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=70708&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=70708&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=70708&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=70708&r=mysqlcfg

« previous php.bugs (#196594) next »