Skip to content
forked from facebook/hhvm

Experimental fork which adds 32-bit compatibility. export HPHP_FORCE_32BIT=1 before running cmake. Tested on Slackware 12.2. Dependencies installed by hand. No packages systems assumptions (official wiki still valid).

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENSE.PHP
Unknown
LICENSE.ZEND
Notifications You must be signed in to change notification settings

metagoto/hiphop-php

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HipHop for PHP

HipHop is a source code transformer which transforms PHP source code into highly optimized C++ and then compiles it using g++.

Required Packages

  • cmake 2.6 is the minimum version
  • g++/gcc 4.1 is the minimum version
  • Boost 1.37 is the minimum version
  • flex
  • bison
  • re2c
  • libmysql
  • libxml2
  • libmcrypt
  • libicu 4.2 is the minimum version
  • openssl
  • binutils
  • libcap
  • gd
  • zlib
  • tbb Intel's Thread Building Blocks 2.2 is the minimum version
  • Oniguruma

The following packages have had slight modifications added to them. Patches are provided and should be made against the current source copies.

  • libcurl
  • src/third_party/libcurl.fb-changes.diff
  • libevent 1.4
  • src/third_party/libevent.fb-changes.diff

Installation

You may need to point CMake to the location of your custom libcurl and libevent, or to any other libraries which needed to be installed. The CMAKE_PREFIX_PATH variable is used to hint to the location.

export CMAKE_PREFIX_PATH=/home/user

To build HipHop, use the following:

cd /home/user/dev
git clone git://github.com/facebook/hiphop-php.git
cd hiphop-php
git submodule init
git submodule update
export HPHP_HOME=`pwd`
export HPHP_LIB=`pwd`/bin
cmake .

Once this is done you can generate the build file. This will return you to the shell. Finally, to build, run make. If any errors occur, it may be required to remove the CMakeCache.txt directory in the checkout.

make

Running HipHop

Please see the wiki page

About

Experimental fork which adds 32-bit compatibility. export HPHP_FORCE_32BIT=1 before running cmake. Tested on Slackware 12.2. Dependencies installed by hand. No packages systems assumptions (official wiki still valid).

Resources

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENSE.PHP
Unknown
LICENSE.ZEND

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 62.9%
  • C 31.9%
  • PHP 3.2%
  • Shell 1.7%
  • Java 0.1%
  • Haskell 0.1%
  • Other 0.1%