我是 PHP 的新手,我正在尝试在我的 Windows 开发机器上运行从其他人那里获得的代码。我安装了 PHP 5 和 Apache 2.2,但是当我尝试运行它时出现错误:
Fatal error: Call to undefined function sem_get()
它被抛出的行是:
private function UpdateCounter($semkey, $memkey, $count)
{
$sem_h = sem_get($semkey, 1);//this line is the problem
...
}
最佳答案
sem_get()
函数由 Semaphore, Shared Memory and IPC 提供组件。
引用introduction它的手册部分:
This extension is not available on Windows platforms.
关于php - fatal error : Call to undefined function sem_get(),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5251251/