- Install caddy and PHP 7.3.3
- Create
index.php
andCaddyfile
in a directory - In the same directory run
caddy
- run
curl localhost:8080
Created
March 22, 2019 23:24
-
-
Save matt-allan/280a0120d7e8467fb384acd80d697edb to your computer and use it in GitHub Desktop.
Caddyfile for PHP bug 77782
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
localhost:8080 | |
fastcgi / 127.0.0.1:9000 php { | |
env FOO bar | |
} | |
rewrite { | |
regexp .* | |
ext / | |
to /index.php?{query} | |
} | |
log stdout | |
errors stdout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$env = getenv(); | |
foreach ($env as $key => $value) { | |
var_dump($key); | |
} | |
$var = 'FOO'; | |
var_dump(getenv($var)); | |
var_dump($env[$var]); | |
var_dump($var); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment