简体   繁体   中英

Symfony2 - generate:bundle command throws Notice: Undefined variable: output

I'm new to Symfony2 framework and following an online tut. However, when I reached the point to setting up a bundle in CMD following message repeatedly appearing.

Configuration format (annotation, yaml, xml, php) [annotation]: Notice: Undefined variable: output

Does anyone encontered similar problem? (see the screen shot) 在此处输入图片说明

This error appears because you disabled exec and/or shell_exec in your php.ini . To debug run one of the following commands:

# linux/osx
php -i | grep 'disable_functions'
# windows
php -i | findstr 'disable_functions'

If the disable_functions ini-directive contains exec or shell_exec ...

disable_functions=exec,passthru,shell_exec,system,proc_open

... remove them from disable_functions in your CLI's php.ini as suggested in this answer .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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