Skip to content

Instantly share code, notes, and snippets.

@bjornjohansen
Created July 16, 2015 19:49
Show Gist options
  • Save bjornjohansen/735df6e1f49e3a5877b1 to your computer and use it in GitHub Desktop.
Save bjornjohansen/735df6e1f49e3a5877b1 to your computer and use it in GitHub Desktop.
HHVM -> PHP-FPM fallback test script
<?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