Skip to content

akalend/hhvm-example-ext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

The example of the create native HHVM module

func folder - example of the simple interface, use functions

class folder - example of the class interface

Installation

$ git clone git@github.com:akalend/hhvm-example-ext.git
$ cd hhvm-example-ext
$ hphpize && cmake . && make
$ sudo make install [optional]

Editing the /etc/hhvm/php.ini [optional]:

hhvm.dynamic_extension_path =  /usr/lib/x86_64-linux-gnu/hhvm/extensions/.. build number .../
hhvm.dynamic_extensions[] = my_module.so

Build number folder You can find in the result of execute the cp into make install

Run test:

hhvm test.php

So, You can to run HHVM with options:

 hhvm -d extension_dir=. -d hhvm.extensions[]=my_module.so test.php

About

The example of create the native HHVM module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published