Skip to content

Commit ef3a088

Browse files
Merge remote-tracking branch 'origin/MAGETWO-51983-php-executable-in-command' into develop
2 parents c35e66f + 94f9f9e commit ef3a088

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/code/Magento/Deploy/Model/Filesystem.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ public function __construct(
116116
$this->driverFile = $driverFile;
117117
$this->storeView = $storeView;
118118
$this->shell = $shell;
119-
$this->functionCallPath = 'php -f ' . BP . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . 'magento ';
119+
$this->functionCallPath =
120+
PHP_BINARY . ' -f ' . BP . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . 'magento ';
120121
}
121122

122123
/**

app/code/Magento/Deploy/Test/Unit/Model/FilesystemTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ protected function setUp()
121121
$userCollection->setAccessible(true);
122122
$userCollection->setValue($this->filesystem, $this->userCollectionMock);
123123

124-
$this->cmdPrefix = 'php -f '. BP . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . 'magento ';
124+
$this->cmdPrefix = PHP_BINARY . ' -f ' . BP . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . 'magento ';
125125
}
126126

127127
public function testRegenerateStatic()

0 commit comments

Comments
 (0)