Skip to content

Latest commit

 

History

History
21 lines (18 loc) · 907 Bytes

README.md

File metadata and controls

21 lines (18 loc) · 907 Bytes

The iFixit PHP Interpreter

This is our custom fork of php with a small feature added (autoescaping for html)

Updating to a new version

  1. Fetch the origin
  2. Create a new branch at the git tag of the php release we want to use
  3. Cherry-pick the commit that adds our feature
    • Merging can be done too, but there are often far more conflicts
  4. Deal with conflicts (usually few)
  5. Ensure the copied (and slightly changed) functions in Zend/zend_compile.c and Zend/zend_vm_def.h are just like their copied from counterparts.
  6. git add the changes and continue the cherry-pick.
  7. run php Zend/zend_vm_gen.php and commit the resultant files
  8. Build php (using the build script in our infrastructure repo) on this branch.
  9. Try running some of the tests that have been added in our patch
  10. Open a pull here into the ifixit-production branch.