Created
July 16, 2015 19:49
-
-
Save bjornjohansen/735df6e1f49e3a5877b1 to your computer and use it in GitHub Desktop.
HHVM -> PHP-FPM fallback test script
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 | |
if ( false !== strpos( phpversion(), 'hhvm' ) ) { | |
header( 'HTTP/1.1 502 Bad Gateway', true, 502 ); | |
echo 'Artificial Error'; | |
exit; | |
} | |
echo 'PHP Fallback'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment