github github
  • Home
  • Pricing and Signup
  • Training
  • Gist
  • Blog
  • Login

facebook / hiphop-php

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 1,156
    • 72
  • Source
  • Commits
  • Network (72)
  • Issues (69)
  • Wiki (11)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Switch Branches (1)
    • master ✓
  • Switch Tags (0)
  • Branch List
Sending Request…
  Cancel

http://developers.facebook.com/hiphop-php/

  Cancel
  • HTTP
  • Git Read-Only

This URL has Read+Write access

create_arrayN for SmallArray 
myang (author)
Wed Sep 01 14:12:23 -0700 2010
scottmac (committer)
Thu Sep 02 08:21:45 -0700 2010
commit  195251476ddae872a7b1
tree    6d9cdf2359819af131e4
parent  cd2a59952b555ff1f0dc
hiphop-php /
name age
history
message
file .gitignore Tue Jun 15 17:45:20 -0700 2010 Fix hook makefiles to compile files in place [mwilliams]
directory CMake/ Sun Aug 08 19:25:57 -0700 2010 Fix up cmake for working on FreeBSD and OSX [scottmac]
file CMakeLists.txt Thu Aug 05 12:16:52 -0700 2010 Update CMake with a better detection of invalid... [scottmac]
file LICENSE.PHP Fri Feb 19 18:02:34 -0800 2010 Add license files [scottmac]
file LICENSE.ZEND Fri Feb 19 18:02:34 -0800 2010 Add license files [scottmac]
file Makefile Sat May 22 12:02:24 -0700 2010 Rename folders before update, this probably won... [Scott MacVicar]
file README.md Mon Jun 28 14:24:31 -0700 2010 Update readme and change patch so -p1 is requir... [scottmac]
directory bin/ Sun Aug 22 02:31:46 -0700 2010 We have two files called literal_string.h, chec... [scottmac]
file configure Mon Aug 02 22:31:23 -0700 2010 Fix up configure to work on systems without bash [scottmac]
directory doc/ Thu Sep 02 08:21:12 -0700 2010 documenting the fact HipHop supports func_get_a... [haiping]
directory local/ Wed Feb 03 11:28:34 -0800 2010 speed up bind function for Variant [myang]
directory phpt/ Wed Feb 03 11:28:34 -0800 2010 speed up bind function for Variant [myang]
directory src/ Thu Sep 02 08:21:45 -0700 2010 create_arrayN for SmallArray [myang]
README.md

HipHop for PHP

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

  • Developer Mailing List
  • Wiki
  • Issue Tracker

Required Packages

The latest information is available on the wiki

  • 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
  • Oniguruma
  • libpcre
  • libexpat
  • libmemcached

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-1.4.13.fb-changes.diff OR src/third_party/libevent-1.4.14.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

Dedicated Server Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
  • Blog
  • Support
  • Training
  • Job Board
  • Shop
  • Contact
  • API
  • Status
  • © 2010 GitHub Inc. All rights reserved.
  • Terms of Service
  • Privacy
  • Security
  • English
  • Deutsch
  • Français
  • 日本語
  • Português (BR)
  • 中文
  • See all available languages

Your current locale selection: English. Choose another?

  • English
  • Afrikaans
  • Català
  • Čeština
  • Deutsch
  • Español
  • Français
  • Hrvatski
  • Indonesia
  • Italiano
  • 日本語
  • Nederlands
  • Norsk
  • Polski
  • Português (BR)
  • Српски
  • Svenska
  • 中文