Symfony组件控制台DialogHelper中的未定义变量$ output [英] Undefined variable $output in Symfony Component Console DialogHelper
本文介绍了Symfony组件控制台DialogHelper中的未定义变量$ output的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试运行symfony控制台命令,但出现错误:
I tried to run symfony console command, but I've got an error:
Notice: Undefined variable: output in /var/www/.../vendor/symfony/symfony/src/Symfony/Component/Console/Helper/DialogHelper.php line 411
我不知道为什么会出错.
I have no idea, why it went wrong.
任何人都可以帮忙吗?
推荐答案
我已经解决了这个问题:出现此错误是因为php.ini
文件中的exec()
和shell_exec
函数已被禁用.要启用此功能,您必须编辑以下字符串:
I've solved the problem: this error appears because exec()
and shell_exec
functions was disabled in php.ini
file. To enable this functions you have to edit this string:
disable_functions =exec,passthru,shell_exec,system,proc_open
并删除exec
,shell_exec
:
disable_functions =passthru,system,proc_open
这篇关于Symfony组件控制台DialogHelper中的未定义变量$ output的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文