我是
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.