1
0
Fork 0

Merge branch '1.6'

pull/7075/merge
Jordi Boggiano 2018-02-11 11:02:41 +01:00
commit ef46a8afa4
1 changed files with 2 additions and 2 deletions

View File

@ -61,9 +61,9 @@ class PearBinaryInstaller extends BinaryInstaller
{ {
parent::initializeBinDir(); parent::initializeBinDir();
file_put_contents($this->binDir.'/composer-php', $this->generateUnixyPhpProxyCode()); file_put_contents($this->binDir.'/composer-php', $this->generateUnixyPhpProxyCode());
@chmod($this->binDir.'/composer-php', 0777); @chmod($this->binDir.'/composer-php', 0777 & ~umask());
file_put_contents($this->binDir.'/composer-php.bat', $this->generateWindowsPhpProxyCode()); file_put_contents($this->binDir.'/composer-php.bat', $this->generateWindowsPhpProxyCode());
@chmod($this->binDir.'/composer-php.bat', 0777); @chmod($this->binDir.'/composer-php.bat', 0777 & ~umask());
} }
protected function generateWindowsProxyCode($bin, $link) protected function generateWindowsProxyCode($bin, $link)