This is an implementation of the xdiff
PHP extension for the HipHop PHP VM.
This extension only requires the libxdiff
library. The library is available on the LibXDiff homepage.
Installation requires a copy of HipHop to be built from source on the local machine, instructions on how to do this are available on the HipHop Wiki. Once done, the following commands will build the extension.
$ cd /path/to/extension
$ $HPHP_HOME/hphp/tools/hphpize/hphpize
$ cmake .
$ make
This will produce a xdiff.so
file, the dynamically-loadable extension.
To enable the extension, you need to have the following section in your hhvm config file
DynamicExtensionPath = /path/to/hhvm/extensions
DynamicExtensions {
* = xdiff.so
}
Where /path/to/hhvm/extensions
is a folder containing all HipHop extensions, and xdiff.so
is in
it. This will cause the extension to be loaded when the virtual machine starts up.
As always, bugs should be reported to the issue tracker and patches are very welcome.