Skip to content

Commit 9268611

Browse files
committed
Merge branch 'PHP-8.3' into PHP-8.4
2 parents 229afe1 + d9f9d35 commit 9268611

File tree

7 files changed

+60
-6
lines changed

7 files changed

+60
-6
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#[=============================================================================[
2+
# FindBZip2
3+
4+
This module overrides the upstream CMake `FindBZip2` module with few
5+
customizations:
6+
7+
* Added BZip2_VERSION result variable for CMake < 4.2.
8+
9+
See: https://cmake.org/cmake/help/latest/module/FindBZip2.html
10+
#]=============================================================================]
11+
12+
# Find package with upstream CMake find module. Absolute path prevents the
13+
# maximum nesting/recursion depth error on some systems, like macOS.
14+
include(${CMAKE_ROOT}/Modules/FindBZip2.cmake)
15+
16+
if(CMAKE_VERSION VERSION_LESS 4.2)
17+
set(BZip2_VERSION "${BZIP2_VERSION}")
18+
endif()
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#[=============================================================================[
2+
# FindLibXml2
3+
4+
This module overrides the upstream CMake `FindLibXml2` module with few
5+
customizations:
6+
7+
* Added LibXml2_VERSION result variable for CMake < 4.2.
8+
9+
See: https://cmake.org/cmake/help/latest/module/FindLibXml2.html
10+
#]=============================================================================]
11+
12+
# Find package with upstream CMake find module. Absolute path prevents the
13+
# maximum nesting/recursion depth error on some systems, like macOS.
14+
include(${CMAKE_ROOT}/Modules/FindLibXml2.cmake)
15+
16+
if(CMAKE_VERSION VERSION_LESS 4.2)
17+
set(LibXml2_VERSION "${LIBXML2_VERSION_STRING}")
18+
endif()
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#[=============================================================================[
2+
# FindPostgreSQL
3+
4+
This module overrides the upstream CMake `FindPostgreSQL` module with few
5+
customizations:
6+
7+
* Added PostgreSQL_VERSION result variable for CMake < 4.2.
8+
9+
See: https://cmake.org/cmake/help/latest/module/FindPostgreSQL.html
10+
#]=============================================================================]
11+
12+
# Find package with upstream CMake find module. Absolute path prevents the
13+
# maximum nesting/recursion depth error on some systems, like macOS.
14+
include(${CMAKE_ROOT}/Modules/FindPostgreSQL.cmake)
15+
16+
if(CMAKE_VERSION VERSION_LESS 4.2)
17+
set(PostgreSQL_VERSION "${PostgreSQL_VERSION_STRING}")
18+
endif()

cmake/ext/bz2/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ if(TARGET BZip2::BZip2)
9090
# the FILE definition. BZ2_bzerror() is available as of 1.0.0.
9191
block()
9292
set(headers "bzlib.h")
93-
if(BZIP2_VERSION VERSION_LESS 1.0.2)
93+
if(BZip2_VERSION VERSION_LESS 1.0.2)
9494
list(PREPEND headers "stdio.h")
9595
endif()
9696
check_symbol_exists(BZ2_bzerror "${headers}" PHP_EXT_BZ2_SANITY_CHECK)

cmake/ext/libxml/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ set_package_properties(
7575
)
7676

7777
# HAVE_WIN32_THREADS is not needed on newer libxml2 versions anymore.
78-
if(LIBXML2_VERSION_STRING VERSION_LESS 2.10)
78+
if(LibXml2_VERSION VERSION_LESS 2.10)
7979
target_compile_definitions(
8080
php_ext_libxml
8181
PRIVATE

cmake/ext/pdo_pgsql/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ if(TARGET PostgreSQL::PostgreSQL)
9797
endif()
9898

9999
# Available since PostgreSQL library version 12.
100-
if(PostgreSQL_VERSION_STRING VERSION_GREATER_EQUAL 12)
100+
if(PostgreSQL_VERSION VERSION_GREATER_EQUAL 12)
101101
check_symbol_exists(
102102
PQresultMemorySize
103103
libpq-fe.h
@@ -106,7 +106,7 @@ if(TARGET PostgreSQL::PostgreSQL)
106106
endif()
107107

108108
# Available since PostgreSQL library version 17.
109-
if(PostgreSQL_VERSION_STRING VERSION_GREATER_EQUAL 17)
109+
if(PostgreSQL_VERSION VERSION_GREATER_EQUAL 17)
110110
# Indicates the presence of PQclosePrepared, PQclosePortal, etc.
111111
check_symbol_exists(
112112
LIBPQ_HAS_CLOSE_PREPARED

cmake/ext/pgsql/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ if(TARGET PostgreSQL::PostgreSQL)
101101
endif()
102102

103103
# Available since PostgreSQL library version 12.
104-
if(PostgreSQL_VERSION_STRING VERSION_GREATER_EQUAL 12)
104+
if(PostgreSQL_VERSION VERSION_GREATER_EQUAL 12)
105105
check_symbol_exists(
106106
PQresultMemorySize
107107
libpq-fe.h
@@ -115,7 +115,7 @@ if(TARGET PostgreSQL::PostgreSQL)
115115
endif()
116116

117117
# Available since PostgreSQL library version 17.
118-
if(PostgreSQL_VERSION_STRING VERSION_GREATER_EQUAL 17)
118+
if(PostgreSQL_VERSION VERSION_GREATER_EQUAL 17)
119119
# Indicates the presence of PQchangePassword.
120120
check_symbol_exists(
121121
LIBPQ_HAS_CHANGE_PASSWORD

0 commit comments

Comments
 (0)