You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When many PHP versions are installed
I run command with PHP prefix
But command run drush without PHP version
It run with default PHP version and throw an error
The command "/path/to/site/vendor/bin/drush updatedb:status --yes --strict=0" failed.
Exit Code: 255(Unknown error)
Working directory:
Output:
================
Error Output:
================
PHP Warning: Module "curl" is already loaded in Unknown on line 0
Composer detected issues in your platform:
Your Composer dependencies require a PHP version ">= 8.2.0". You are running 8.1.30.
PHP Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.2.0". You are running 8.1.30. in /path/to/site/vendor/composer/platfo
rm_check.php on line 24
I tried to specify php prefix in drush-script version but use space doesn't work
The command "'/usr/bin/php8.2 /path/to/site/vendor/bin/drush.php' updatedb:status --yes --strict=0" failed.
Exit Code: 127(Command not found)
Working directory:
Output:
================
Error Output:
================
sh: 1: /usr/bin/php8.2 /path/to/site/vendor/bin/drush.php: not found
To Reproduce
Install drupal with many php versions
Use different php than default version
Override drush-script in config drush-script: '/usr/bin/php8.2 /path/to/site/vendor/bin/drush.php'
Expected behavior
Drush should run with php prefix as command set in terminal
Actual behavior
Prefix php can't be set and Drush use default php version
Workaround
In Process Manager src/SiteAlias/ProcessManager.php
when drush is set on first on args
// The executable is always 'drush' (at some path or another)
array_unshift($args, $drushScript);
If space is set in drush path,it whould explode in array and set in args in different keys
// The executable is always 'drush' (at some path or another)
$drushArray = explode(' ', $drushScript);
foreach (array_reverse($drushArray) as $drush) {
array_unshift($args, $drush);
}
System Configuration
Q
A
Drush version?
13.3.3
Drupal version?
10.3
PHP version
8.3
OS?
Linux
The text was updated successfully, but these errors were encountered:
Drush doesn't select a php - your operating does that using the PATH env variable. This happenned to work before 13.3.3 but no longer does. See the Note at https://www.drush.org/latest/install/
Describe the bug
When many PHP versions are installed
I run command with PHP prefix
But command run drush without PHP version
It run with default PHP version and throw an error
I tried to specify php prefix in drush-script version but use space doesn't work
To Reproduce
Expected behavior
Drush should run with php prefix as command set in terminal
Actual behavior
Prefix php can't be set and Drush use default php version
Workaround
In Process Manager src/SiteAlias/ProcessManager.php
when drush is set on first on args
If space is set in drush path,it whould explode in array and set in args in different keys
System Configuration
The text was updated successfully, but these errors were encountered: