Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.