Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add check on 'exec' function in SymfonyRequirements #6357

Closed
@rvanlaak

Description

@rvanlaak

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions