简体   繁体   English

HHVM和PHP exec()

[英]HHVM and PHP exec()

I'm trying to use the exec() PHP function on a system that run on HHVM. 我正在尝试在HHVM上运行的系统上使用exec()PHP函数。

Unfortunately, the command (even a simple echo) return an empty string, without any error. 不幸的是,该命令(甚至是简单的回显)都返回一个空字符串,没有任何错误。 When I try the command inside terminal as root the output is correct. 当我尝试以root用户身份在终端内执行命令时,输出正确。

PHP Safe mode is off, I guess this is a permission issue but I don't know how to solve it. PHP安全模式已关闭,我想这是一个权限问题,但我不知道如何解决。

我已经将HHVM更新为3.x,它现在正像一种魅力一样工作。

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

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