Skip to content

Files

Latest commit

Jun 21, 2025
5fc8f7b · Jun 21, 2025

History

History

patches

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jun 21, 2025
Jun 21, 2025
Jun 21, 2025
Jan 13, 2025

Patches for php-src

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