schmittjoh / JMSJobQueueBundle

Run and Schedule Symfony Console Commands as Background Jobs
http://jmsyst.com/bundles/JMSJobQueueBundle
335 stars 254 forks source link

Configure path to php cli #154 #155

Closed TheCelavi closed 7 years ago

TheCelavi commented 7 years ago

Fix for #154

No BC break.

Useful for shared hosts with multiple PHP installations.

schmittjoh commented 7 years ago

I made a slightly different fix which should also address this: https://github.com/schmittjoh/JMSJobQueueBundle/commit/cde4aec981b7b411737f466a0c86892cf3d8e717

coelhoricardo commented 6 years ago

Hi @schmittjoh, I'm not agree about closing this PR.

With @TheCelavi PR, you can specify some case like his/mine case. I need to run php like /path_to_php/php -c /path_to_ini/my_host_config.ini With PHP_BINARY, it runs a misconfigured php. In my case, I have any php extensions.

Please reconsider the PR.

EDIT : a workaround, for my case, is to set PHPRC environment variable pointing to php.ini directory