UUID extension for HipHop VM (HHVM HNI DSO)
PHP C++ Hack Other
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
tests
.gitignore
CHANGELOG.md
LICENSE
README.md
build.sh
config.cmake
ext_uuid.cpp
ext_uuid.php
run-tests.php
test.sh

README.md

UUID (uuid) Extension for HHVM

This is a port of the PECL uuid extension for HipHop Virtual Machine.

Prerequisites

This extension requires the <uuid/uuid.h> header file and libuuid library installed.

On Ubuntu 12.04, you need to install the "uuid-dev" and "libuuid1" packages.

Building & Installation

Requires HHVM 3.0 or later.

$ export HPHP_HOME=/path/to/hhvm
$ cd /path/to/extension
$ ./build.sh

This will produce a uuid.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 {
        * = uuid.so
}

Where /path/to/hhvm/extensions is a folder containing all HHVM extensions, and uuid.so is in it. This will cause the extension to be loaded when the virtual machine starts up.

Testing

To run the test suite:

$ cd /path/to/extension
$ ./test.sh run-tests.php