wp-cli / php-cli-tools

A collection of tools to help with PHP command line utilities
MIT License
672 stars 118 forks source link

Verifies if exec is not in disable_functions directive #83

Closed tiagohillebrandt closed 9 years ago

tiagohillebrandt commented 9 years ago

This patch fixes the warning displayed when exec is set in disable_functions directive.

Warning: exec() has been disabled for security reasons in vendor/wp-cli/php-cli-tools/lib/cli/Shell.php on line 32

If exec is disabled, $columns will assume the value set here: https://github.com/tiagohillebrandt/php-cli-tools/blob/master/lib/cli/Shell.php#L44,L46