Skip to content

Instantly share code, notes, and snippets.

@SammyK
Created August 11, 2017 14:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save SammyK/e2362989e6c7727be0152aa80138efe0 to your computer and use it in GitHub Desktop.
Save SammyK/e2362989e6c7727be0152aa80138efe0 to your computer and use it in GitHub Desktop.
Northeast PHP Hack-a-thon notes

Northeast PHP Hack-a-thon (php-src) 2017

  • Set up GitHub account + add your SSH keys
  • Fork php-src repo to your GitHub account
  • Clone source (or use USB stick) & cd into directory
  • Update origin remote URL with your fork
$ git remote set-url origin {your-fork-URL}
  • Install the deps or use Docker
$ sudo apt-get update
$ sudo apt-get install git \
  build-essential autoconf valgrind \
  re2c bison \
  libxml2-dev lcov
  • If using Docker, build, run & access TTY:
$ docker-compose build
$ docker-compose up
$ docker exec -it -u sammyk phptscreencast_web_1 bash
  • Configure with at least the following
$ ./configure --enable-maintainer-zts \
  --enable-debug \
  --enable-cli
  • Compile all the things
$ make
  • Check version number
$ sapi/cli/php --version
  • Run some tests (for example for ext/libxml)
$ make test TESTS=ext/libxml/tests/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment