This is a collection of patches for various PHP versions in order to use CMake or due to upstream unresolved bugs. Each patch has a description attached in its header. They are automatically applied when building PHP with CMake in this repository.
To create a new patch:
git --no-pager format-patch -1 HEAD --stdout > some.patch
To modify existing patches:
cd php-src
git checkout -b some-patch
# Apply existing patch
git am -3 some.patch
# ... Make and commit changes
# Update some.patch file
git --no-pager format-patch -1 HEAD --stdout > some.patch
To update patches against the latest upstream tracking Git branches:
./bin/update-patches.sh