Closed
Description
Since version 2.2.0 the Finder component makes use of the php exec() function. This function often is disabled by providers (especially shared hosting providers). For me, this resulted in:
ErrorException: Warning: exec() has been disabled for security reasons in
/public_html/dev/vendor/symfony/symfony/src/Symfony/Component/Finder/Shell/Shell.php line 61
The Shell.php file does have a TODO:
// todo: find a better way (command could not be available)
exec('command -v '.$command, $output, $code);
It would be usefull if the environment checking gets extended in order to make Symfony adoptable more easy. At my shared hosting the following features are disabled:
system,exec,shell_exec,passthru,proc_open,proc_get_status,proc_nice,proc_terminate,dl,popen,pcntl_exec