简体   繁体   English

无法在php中使用posix_kill

[英]Trouble using posix_kill in php

I'm using php 5.5.11 and when I try to call posix_kill I get the following error: 我正在使用php 5.5.11 ,当我尝试调用posix_kill ,出现以下错误:
Fatal error: Call to undefined function posix_kill() in /var/www/.../someScript.php on line 861

I'm not sure what more information is relevant, feel free to ask. 我不确定还有其他相关信息,请随时询问。

You need to install PHP's posix extension which implements that function. 您需要安装实现该功能的PHP的posix扩展。 Without that extension the function simply is not defined, which leads to the error. 如果没有该扩展名,就不会定义该函数,从而导致错误。

How to install such an extension package depends on your operating system. 如何安装这样的扩展程序包取决于您的操作系统。 Easiest is in Linux where you can search, identify, download and install packages with a single click inside the software management system. 在Linux中,最简单的方法是在软件管理系统内单击即可搜索,识别,下载和安装软件包。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM