Skip to content

Commit 2752198

Browse files
committed
Merge branch 'PHP-8.3'
2 parents 833486d + 6e3ba65 commit 2752198

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+520
-427
lines changed

cmake/Zend/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,8 @@ cmake_push_check_state(RESET)
291291
set(CMAKE_REQUIRED_QUIET TRUE)
292292
check_source_compiles(C [[
293293
#include <cpuid.h>
294-
int main(void) {
294+
int main(void)
295+
{
295296
unsigned eax, ebx, ecx, edx;
296297
__cpuid_count(0, 0, eax, ebx, ecx, edx);
297298
return 0;

cmake/cmake/ConfigureChecks.cmake

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,8 @@ message(CHECK_START "Checking for asm goto support")
241241
cmake_push_check_state(RESET)
242242
set(CMAKE_REQUIRED_QUIET TRUE)
243243
check_source_compiles(C [[
244-
int main(void) {
244+
int main(void)
245+
{
245246
#if defined(__x86_64__) || defined(__i386__)
246247
__asm__ goto("jmp %l0\n" :::: end);
247248
#elif defined(__aarch64__)
@@ -500,7 +501,8 @@ message(CHECK_START "Checking whether the compiler supports __alignof__")
500501
cmake_push_check_state(RESET)
501502
set(CMAKE_REQUIRED_QUIET TRUE)
502503
check_source_compiles(C [[
503-
int main(void) {
504+
int main(void)
505+
{
504506
int align = __alignof__(int);
505507
(void)align;
506508
return 0;

cmake/cmake/modules/FindACL.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ function(_acl_check result)
6868
check_source_compiles(C [[
6969
#include <sys/acl.h>
7070

71-
int main(void) {
71+
int main(void)
72+
{
7273
acl_t acl;
7374
acl_entry_t user, group;
7475
acl = acl_init(1);

cmake/cmake/modules/FindAtomic.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ block()
2222
set(test [[
2323
#include <stdatomic.h>
2424

25-
int main(void) {
25+
int main(void)
26+
{
2627
atomic_flag n8_flag = ATOMIC_FLAG_INIT;
2728
atomic_ullong n64 = ATOMIC_VAR_INIT(0);
2829

cmake/cmake/modules/FindBerkeleyDB.cmake

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ if(BerkeleyDB_USE_DB1)
7979

8080
check_source_compiles(C [[
8181
#include <db_185.h>
82-
int main(void) {
82+
int main(void)
83+
{
8384
DB * dbp = dbopen("", 0, 0, DB_HASH, 0);
8485
return 0;
8586
}
@@ -102,7 +103,8 @@ if(BerkeleyDB_LIBRARY)
102103
check_source_compiles(C [[
103104
#include <db.h>
104105

105-
int main(void) {
106+
int main(void)
107+
{
106108
(void)db_create((DB**)0, (DB_ENV*)0, 0);
107109
return 0;
108110
}

cmake/cmake/modules/FindRE2C.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ if(RE2C_USE_COMPUTED_GOTOS)
182182
cmake_push_check_state(RESET)
183183
set(CMAKE_REQUIRED_QUIET TRUE)
184184
check_source_compiles(C [[
185-
int main(void) {
185+
int main(void)
186+
{
186187
label1:
187188
;
188189
label2:

cmake/cmake/modules/PHP/CheckAVX512.cmake

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ TODO: Adjust checks for MSVC.
77
88
Cache variables:
99
10-
PHP_HAVE_AVX512_SUPPORTS
11-
Whether compiler supports AVX-512.
12-
PHP_HAVE_AVX512_VBMI_SUPPORTS
13-
Whether compiler supports AVX-512 VBMI.
10+
* `PHP_HAVE_AVX512_SUPPORTS`
11+
Whether compiler supports AVX-512.
12+
* `PHP_HAVE_AVX512_VBMI_SUPPORTS`
13+
Whether compiler supports AVX-512 VBMI.
1414
#]=============================================================================]
1515

1616
include_guard(GLOBAL)
@@ -29,7 +29,8 @@ cmake_push_check_state(RESET)
2929
check_source_compiles(C [[
3030
#include <immintrin.h>
3131

32-
int main(void) {
32+
int main(void)
33+
{
3334
__m512i mask = _mm512_set1_epi32(0x1);
3435
char out[32];
3536
_mm512_storeu_si512(out, _mm512_shuffle_epi8(mask, mask));
@@ -48,7 +49,8 @@ cmake_push_check_state(RESET)
4849
check_source_compiles(C [[
4950
#include <immintrin.h>
5051

51-
int main(void) {
52+
int main(void)
53+
{
5254
__m512i mask = _mm512_set1_epi32(0x1);
5355
char out[32];
5456
_mm512_storeu_si512(out, _mm512_permutexvar_epi8(mask, mask));

cmake/cmake/modules/PHP/CheckAttribute.cmake

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,27 @@ Check if GNU C function or variable attribute is supported by the compiler.
33
44
Module exposes the following functions:
55
6-
php_check_function_attribute(<attribute> <result>)
7-
php_check_variable_attribute(<attribute> <result>)
6+
```cmake
7+
php_check_function_attribute(<attribute> <result>)
8+
php_check_variable_attribute(<attribute> <result>)
9+
```
810
9-
<attribute>
10-
Name of the attribute to check.
11-
<result>
12-
Cache variable name to store the result of whether the compiler supports
13-
the attribute <attribute>.
11+
* `<attribute>`
12+
Name of the attribute to check.
13+
14+
* `<result>`
15+
Cache variable name to store the result of whether the compiler supports the
16+
attribute `<attribute>`.
1417
1518
Supported function attributes:
1619
17-
ifunc
18-
target
19-
visibility
20+
* ifunc
21+
* target
22+
* visibility
2023
2124
Supported variable attributes:
2225
23-
aligned
26+
* aligned
2427
#]=============================================================================]
2528

2629
include_guard(GLOBAL)

cmake/cmake/modules/PHP/CheckBrokenGccStrlenOpt.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#[=============================================================================[
22
Early GCC 8 versions shipped with a strlen() optimization bug, so it didn't
3-
properly handle the 'char val[1]' struct hack. Fixed in GCC 8.3. If below check
3+
properly handle the `char val[1]` struct hack. Fixed in GCC 8.3. If below check
44
is successful the -fno-optimize-strlen compiler flag should be added.
55
See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86914
66
77
Cache variables:
88
9-
PHP_HAVE_BROKEN_OPTIMIZE_STRLEN
10-
Whether GCC has broken strlen() optimization.
9+
* `PHP_HAVE_BROKEN_OPTIMIZE_STRLEN`
10+
Whether GCC has broken strlen() optimization.
1111
#]=============================================================================]
1212

1313
include_guard(GLOBAL)

cmake/cmake/modules/PHP/CheckBuiltin.cmake

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
11
#[=============================================================================[
2-
Check whether compiler supports one of the built-in functions __builtin_*().
2+
Check whether compiler supports one of the built-in functions `__builtin_*()`.
33
44
Module exposes the following function:
55
6-
php_check_builtin(<symbol_name> <result_var>)
6+
```cmake
7+
php_check_builtin(<builtin> <result_var>)
8+
```
9+
10+
If builtin `<builtin>` is supported by the C compiler, store the check result in
11+
the cache variable `<result_var>`.
12+
713
#]=============================================================================]
814

915
include_guard(GLOBAL)
1016

1117
include(CheckSourceCompiles)
1218
include(CMakePushCheckState)
1319

14-
# cmake-lint: disable=R0912
1520
function(php_check_builtin builtin result)
1621
message(CHECK_START "Checking for ${builtin}")
1722

@@ -58,7 +63,8 @@ function(php_check_builtin builtin result)
5863
set(CMAKE_REQUIRED_QUIET TRUE)
5964

6065
check_source_compiles(C "
61-
int main(void) {
66+
int main(void)
67+
{
6268
${call}
6369
6470
return 0;

0 commit comments

Comments
 (0)