Skip to content

Commit 2af1488

Browse files
committed
[TASK] Updated test to use $_SERVER and not getenv
1 parent a2e289c commit 2af1488

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dev/bootstrap-controller.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@
1616
exit(1);
1717
}
1818

19-
$upwardConfig = getenv('UPWARD_PHP_UPWARD_PATH');
19+
if (empty($_SERVER['UPWARD_PHP_UPWARD_PATH']) || !isset($_SERVER['UPWARD_PHP_UPWARD_PATH'])) {
20+
$_SERVER = array_merge(getenv(), $_SERVER);
21+
}
22+
$upwardConfig = $_SERVER['UPWARD_PHP_UPWARD_PATH'];
2023
if (!$upwardConfig) {
2124
echo 'No path to UPWARD YAML file provided.' . PHP_EOL;
2225
exit(1);

0 commit comments

Comments
 (0)