Last active
February 22, 2018 13:48
-
-
Save SamMousa/fa981f4ae227b945fef29e68669e0b08 to your computer and use it in GitHub Desktop.
Breaking a PHPFPM worker...
This file contains hidden or 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 | |
if ($_SERVER['testcase'] === 'test') { | |
echo 'Everything is fine; trying to break your env...'; | |
foreach($_SERVER as $key => &$value) { | |
putenv("$key=$value"); | |
} | |
} else { | |
phpinfo(INFO_ENVIRONMENT); | |
} | |
die(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment