Skip to content

Instantly share code, notes, and snippets.

@dave1010
Created February 27, 2014 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dave1010/9250546 to your computer and use it in GitHub Desktop.
Save dave1010/9250546 to your computer and use it in GitHub Desktop.
wp-db.php.diff
<?php
// workaround for HHVM not supporting case-insensitive constants
// http://www.hhvm.com/blog/113/getting-wordpress-running-on-hhvm
if (! defined( 'HHVM_VERSION' )) {
define( 'OBJECT', 'OBJECT', true );
} else {
define('OBJECT', 'OBJECT');
define('Object', 'OBJECT');
define('object', 'OBJECT');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment