Skip to content

Commit c394594

Browse files
committed
Update PHP versions and patches
1 parent 6e5b176 commit c394594

File tree

13 files changed

+790
-124
lines changed

13 files changed

+790
-124
lines changed

bin/init.cmake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ Usage:
1616

1717
cmake_minimum_required(VERSION 3.25 FATAL_ERROR)
1818

19+
# The PHP MAJOR.MINOR version currently in development (the master branch).
20+
set(PHP_DEVELOPMENT_VERSION "8.5")
21+
1922
# Check if git command is available.
2023
find_program(GIT_EXECUTABLE git DOC "Path to the Git executable")
2124

@@ -109,7 +112,7 @@ message(STATUS "Applying patches to ${PHP_SOURCE_DIR_NAME}")
109112

110113
# Apply patches for php-src.
111114
if(GIT_BRANCH STREQUAL "master")
112-
set(PHP_VERSION "8.4")
115+
set(PHP_VERSION "${PHP_DEVELOPMENT_VERSION}")
113116
else()
114117
string(REGEX MATCH [[([0-9]+\.[0-9]+).*$]] PHP_VERSION "${GIT_BRANCH}")
115118
endif()

bin/init.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ generator=""
1010
branch=""
1111
debug=0
1212

13+
# The PHP MAJOR.MINOR version currently in development (the master branch).
14+
phpVersionDev="8.5"
15+
1316
# Go to project root.
1417
cd $(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd -P)
1518

@@ -177,7 +180,7 @@ cp -r cmake/* php-src/
177180

178181
# Apply patches to php-src from the patches directory.
179182
if test ${branch} = "master"; then
180-
php_version=8.4
183+
php_version=$phpVersionDev
181184
else
182185
php_version=$(echo $branch | sed 's/PHP-\([0-9.]*\).*$/\1/')
183186
fi

bin/make-patches.sh

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,25 @@ patch-cmake-8.3-zend-vm-gen
1717
patch-cmake-8.4
1818
patch-cmake-8.4-asm
1919
patch-cmake-8.4-dmalloc
20-
patch-cmake-8.4-docs
2120
patch-cmake-8.4-php-config
2221
patch-cmake-8.4-phpdbg-prompt
2322
patch-cmake-8.4-timelib
2423
patch-cmake-8.4-zend-vm-gen
24+
patch-cmake-8.5
25+
patch-cmake-8.5-asm
26+
patch-cmake-8.5-dmalloc
27+
patch-cmake-8.5-docs
28+
patch-cmake-8.5-php-config
29+
patch-cmake-8.5-phpdbg-prompt
30+
patch-cmake-8.5-timelib
31+
patch-cmake-8.5-zend-vm-gen
2532
"
2633

2734
# A list of supported PHP versions.
28-
phpVersions="8.3 8.4"
35+
phpVersions="8.3 8.4 8.5"
2936

30-
# The PHP MAJOR.MINOR version currently in development
31-
phpVersionDev="8.4"
37+
# The PHP MAJOR.MINOR version currently in development (the master branch).
38+
phpVersionDev="8.5"
3239

3340
# Whether to rebase the patch branches against their tracked origins.
3441
refresh=0

bin/php.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ cmake_minimum_required(VERSION 3.25 FATAL_ERROR)
3939
# Set default variables.
4040
################################################################################
4141

42-
# The MAJOR.MINOR version currently in development.
43-
set(PHP_VERSION_DEV "8.4")
42+
# The PHP MAJOR.MINOR version currently in development (the master branch).
43+
set(PHP_VERSION_DEV "8.5")
4444
# The latest stable PHP version as a fallback when version cannot be discovered
4545
# from remote JSON output.
4646
set(PHP_VERSION_FALLBACK "8.3.4")

patches/8.4/cmake.patch

Lines changed: 4 additions & 116 deletions
Original file line numberDiff line numberDiff line change
@@ -1,124 +1,12 @@
11
Subject: Add CMake changes for PHP-8.4 branch
22

3-
- EditorConfig adjustments for code style support in editors and IDEs
4-
- CMake build system files added to .gitignore
5-
- CMake added to run-tests.php for info about failing tests and checks
6-
- CMakeLists.txt template and modifications added to ext/skeleton
3+
* CMake added to run-tests.php for info about failing tests and checks
74
---
8-
.editorconfig | 2 +-
9-
.gitignore | 43 ++++++++++++++++++++++++++++++++++++++
10-
ext/ext_skel.php | 1 +
11-
ext/skeleton/.gitignore.in | 21 +++++++++++++++++++
12-
run-tests.php | 24 +++++++++++++++------
13-
5 files changed, 84 insertions(+), 7 deletions(-)
5+
run-tests.php | 24 ++++++++++++++++++------
6+
1 file changed, 18 insertions(+), 6 deletions(-)
147

15-
diff --git a/.editorconfig b/.editorconfig
16-
index 7911bf8490..0ca142015f 100644
17-
--- a/.editorconfig
18-
+++ b/.editorconfig
19-
@@ -17,7 +17,7 @@ indent_style = tab
20-
indent_size = 4
21-
indent_style = space
22-
23-
-[*.{ac,m4,sh,yml}]
24-
+[{CMakeLists.txt,*.{ac,cmake,json,m4,sh,yml}}]
25-
indent_size = 2
26-
indent_style = space
27-
28-
diff --git a/.gitignore b/.gitignore
29-
index d54334f599..db362020fe 100644
30-
--- a/.gitignore
31-
+++ b/.gitignore
32-
@@ -297,3 +297,46 @@ tmp-php.ini
33-
!/ext/dom/lexbor/patches/*.patch
34-
!/ext/pcre/pcre2lib/config.h
35-
!/win32/build/Makefile
36-
+
37-
+# ------------------------------------------------------------------------------
38-
+# CMake-based build system files
39-
+# ------------------------------------------------------------------------------
40-
+cmake_install.cmake
41-
+CMakeCache.txt
42-
+CMakeFiles/
43-
+
44-
+# Generated by FetchContent
45-
+/_deps/
46-
+
47-
+# Graphviz generated files
48-
+/*.dependers
49-
+/*.dot
50-
+
51-
+# Generated by the Ninja build system
52-
+/.ninja*
53-
+/build.ninja
54-
+
55-
+# Local user presets
56-
+/CMakeUserPresets.json
57-
+
58-
+# Generated when CMAKE_EXPORT_COMPILE_COMMANDS is enabled
59-
+/compile-commands.json
60-
+
61-
+# Generated by ctest
62-
+/CTestTestfile.cmake
63-
+/Testing/
64-
+
65-
+# CMake script profiling data output (--profiling-output <path>)
66-
+/profile.json
67-
+
68-
+# Generated by QT Creator
69-
+CMakeLists.txt.user
70-
+
71-
+# Generated by XCode
72-
+CMakeScripts/
73-
+
74-
+# Generated by cmake --install
75-
+/install_manifest.txt
76-
+
77-
+# Generated by cmake when cross-compiling if missing cache variables are found
78-
+/TryRunResults.cmake
79-
diff --git a/ext/ext_skel.php b/ext/ext_skel.php
80-
index ae7a3a987c..648e3728b8 100755
81-
--- a/ext/ext_skel.php
82-
+++ b/ext/ext_skel.php
83-
@@ -302,6 +302,7 @@ function copy_config_scripts() {
84-
$files[] = 'config.w32';
85-
}
86-
87-
+ $files[] = 'CMakeLists.txt';
88-
$files[] = '.gitignore';
89-
90-
foreach($files as $config_script) {
91-
diff --git a/ext/skeleton/.gitignore.in b/ext/skeleton/.gitignore.in
92-
index e691bd3964..fff9fc09d0 100644
93-
--- a/ext/skeleton/.gitignore.in
94-
+++ b/ext/skeleton/.gitignore.in
95-
@@ -45,3 +45,24 @@ tests/**/*.db
96-
tests/**/*.mem
97-
tmp-php.ini
98-
*~
99-
+
100-
+# ------------------------------------------------------------------------------
101-
+# CMake-based build system files
102-
+# ------------------------------------------------------------------------------
103-
+/_deps/
104-
+/.ninja*
105-
+/*.dependers
106-
+/*.dot
107-
+/build.ninja
108-
+/CMakeUserPresets.json
109-
+/compile-commands.json
110-
+/CTestTestfile.cmake
111-
+/install_manifest.txt
112-
+/profile.json
113-
+/Testing/
114-
+cmake_install.cmake
115-
+CMakeCache.txt
116-
+CMakeFiles/
117-
+CMakeLists.txt.user
118-
+CMakeScripts/
119-
+/TryRunResults.cmake
1208
diff --git a/run-tests.php b/run-tests.php
121-
index 1c9511130c..0341ffff4c 100755
9+
index 5587c6c0ae..ff5932bfde 100755
12210
--- a/run-tests.php
12311
+++ b/run-tests.php
12412
@@ -865,10 +865,12 @@ function write_information(array $user_tests, $phpdbg): void

0 commit comments

Comments
 (0)