15 lines
356 B
PHP
Executable File
15 lines
356 B
PHP
Executable File
<?php
|
|
|
|
require __DIR__.'/../vendor/autoload.php';
|
|
|
|
if (defined('PHP_WINDOWS_VERSION_BUILD')) {
|
|
$server = array_change_key_case($_SERVER, true);
|
|
$_SERVER['GIT_ENVS'] = [];
|
|
foreach (['PATH', 'SYSTEMROOT'] as $key) {
|
|
if (isset($server[$key])) {
|
|
$_SERVER['GIT_ENVS'][$key] = $server[$key];
|
|
}
|
|
}
|
|
unset($server);
|
|
}
|