Undefined variable $output in Symfony Component Console DialogHelper

亡梦爱人 提交于 2020-01-06 07:49:26

问题


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.

Can anyone help?


回答1:


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

and delete exec, shell_exec:

disable_functions =passthru,system,proc_open



来源:https://stackoverflow.com/questions/17142343/undefined-variable-output-in-symfony-component-console-dialoghelper

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!