diff options
author | Thomas O'Donnell <andytom@users.noreply.github.com> | 2020-06-13 01:04:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-13 01:04:53 +0200 |
commit | c182572796d4388498059f7b0c104ec613b87f7d (patch) | |
tree | a06c6ed01d84cf10870f413c7b99e6eed58b3b34 /src/utils.rs | |
parent | 6ecabdfee4a059c473a8a92073b0db58f8efaa02 (diff) |
Fix PHP version including error messages (#1317)
PHP will output error messages when displaying the version if, for
example, there is something wrong with the local `php.ini` file. Have
updated the command used to get the PHP version to only use the default
PHP config.
Diffstat (limited to 'src/utils.rs')
-rw-r--r-- | src/utils.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.rs b/src/utils.rs index 7687a300b..7f7e7f4d4 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -87,7 +87,7 @@ active boot switches: -d:release\n", stdout: String::from("4.10.0"), stderr: String::default(), }), - "php -r echo PHP_MAJOR_VERSION.'.'.PHP_MINOR_VERSION.'.'.PHP_RELEASE_VERSION;" => { + "php -nr echo PHP_MAJOR_VERSION.'.'.PHP_MINOR_VERSION.'.'.PHP_RELEASE_VERSION;" => { Some(CommandOutput { stdout: String::from("7.3.8"), stderr: String::default(), |