guess.php 错误日志

guess.php 错误日志

昨晚我收到一个奇怪的 php 错误日志。我以前从未在我的服务器上看到过这个,我不知道这意味着什么。

如果您知道的话我将非常感激。

[10-Nov-2010 01:48:08] PHP Warning:  popen() has been disabled for security reasons in /usr/lib/php/OS/Guess.php on line 247
[10-Nov-2010 01:48:08] PHP Warning:  fgets() expects parameter 1 to be resource, null given in /usr/lib/php/OS/Guess.php on line 248
[10-Nov-2010 01:48:08] PHP Warning:  pclose() expects parameter 1 to be resource, null given in /usr/lib/php/OS/Guess.php on line 256
[10-Nov-2010 01:48:43] PHP Warning:  popen() has been disabled for security reasons in /usr/lib/php/OS/Guess.php on line 242
[10-Nov-2010 01:48:43] PHP Warning:  fgets() expects parameter 1 to be resource, null given in /usr/lib/php/OS/Guess.php on line 243
[10-Nov-2010 01:48:43] PHP Warning:  pclose() expects parameter 1 to be resource, null given in /usr/lib/php/OS/Guess.php on line 252 

guess.php 是什么?为什么我会得到错误?

谢谢

答案1

该文件Guess.php属于 PHP PEAR 模块 OS_Guess,用于检索有关当前操作系统的信息

您收到的消息告诉您:

popen() has been disabled for security reasons in /usr/lib/php/OS/Guess.php on line 247

popen() 用于打开与另一个进程的通信,出于安全考虑,许多设置中都禁用了该函数。您收到的其他错误是由于 popen() 失败而导致的后续错误。

查看php.net/popen了解有关此功能的更多详细信息。

相关内容