Skip to content

Commit f7e5e94

Browse files
committed
Merge branch 'master' into true-async
# Conflicts: # Zend/zend_gc.c
2 parents 93ad527 + f566312 commit f7e5e94

File tree

178 files changed

+2977
-1476
lines changed

Some content is hidden

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

178 files changed

+2977
-1476
lines changed

.github/scripts/windows/find-target-branch.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
for /f "usebackq tokens=3" %%i in (`findstr PHP_MAJOR_VERSION main\php_version.h`) do set BRANCH=%%i
44
for /f "usebackq tokens=3" %%i in (`findstr PHP_MINOR_VERSION main\php_version.h`) do set BRANCH=%BRANCH%.%%i
55

6-
if /i "%BRANCH%" equ "8.5" (
6+
if /i "%BRANCH%" equ "8.6" (
77
set BRANCH=master
88
)

.github/workflows/nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,7 @@ jobs:
10421042
PHP_BUILD_CACHE_BASE_DIR: C:\build-cache
10431043
PHP_BUILD_OBJ_DIR: C:\obj
10441044
PHP_BUILD_CACHE_SDK_DIR: C:\build-cache\sdk
1045-
PHP_BUILD_SDK_BRANCH: php-sdk-2.3.0
1045+
PHP_BUILD_SDK_BRANCH: php-sdk-2.5.0
10461046
PHP_BUILD_CRT: ${{ inputs.vs_crt_version }}
10471047
PLATFORM: ${{ matrix.x64 && 'x64' || 'x86' }}
10481048
THREAD_SAFE: "${{ matrix.zts && '1' || '0' }}"

.github/workflows/push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ jobs:
231231
PHP_BUILD_CACHE_BASE_DIR: C:\build-cache
232232
PHP_BUILD_OBJ_DIR: C:\obj
233233
PHP_BUILD_CACHE_SDK_DIR: C:\build-cache\sdk
234-
PHP_BUILD_SDK_BRANCH: php-sdk-2.3.0
234+
PHP_BUILD_SDK_BRANCH: php-sdk-2.5.0
235235
PHP_BUILD_CRT: vs17
236236
PLATFORM: x64
237237
THREAD_SAFE: "1"

NEWS

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,13 @@ PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33
?? ??? ????, PHP 8.6.0alpha1
44

5+
- Intl:
6+
. Added IntlNumberRangeFormatter class to format an interval of two numbers
7+
with a given skeleton, locale, collapse type and identity fallback.
8+
(BogdanUngureanu)
9+
10+
- PDO_PGSQL:
11+
. Fixed Pdo\Pgsql::getColumnMeta() when Pdo\Pgsql::setAttribute(PDO::ATTR_PREFETCH, 0).
12+
(outtersg)
13+
514
<<< NOTE: Insert NEWS from last stable release here prior to actual release! >>>

UPGRADING

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ PHP 8.6 UPGRADE NOTES
2323
2. New Features
2424
========================================
2525

26+
- Intl:
27+
. Added IntlNumberRangeFormatter class to format an interval of two numbers with a given skeleton, locale, IntlNumberRangeFormatter::COLLAPSE_AUTO, IntlNumberRangeFormatter::COLLAPSE_NONE, IntlNumberRangeFormatter::COLLAPSE_UNIT, IntlNumberRangeFormatter::COLLAPSE_ALL collapse and
28+
IntlNumberRangeFormatter::IDENTITY_FALLBACK_SINGLE_VALUE, IntlNumberRangeFormatter::IDENTITY_FALLBACK_APPROXIMATELY_OR_SINGLE_VALUE, IntlNumberRangeFormatter::IDENTITY_FALLBACK_APPROXIMATELY and
29+
IntlNumberRangeFormatter::IDENTITY_FALLBACK_RANGE identity fallbacks.
30+
It is supported from icu 63.
2631
========================================
2732
3. Changes in SAPI modules
2833
========================================
@@ -59,6 +64,11 @@ PHP 8.6 UPGRADE NOTES
5964
11. Changes to INI File Handling
6065
========================================
6166

67+
- Opcache:
68+
. opcache.jit_debug accepts a new flag: ZEND_JIT_DEBUG_TRACE_EXIT_INFO_SRC.
69+
When used along with ZEND_JIT_DEBUG_TRACE_EXIT_INFO, the source of exit
70+
points is printed in exit info output, in debug builds.
71+
6272
========================================
6373
12. Windows Support
6474
========================================

UPGRADING.INTERNALS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ PHP 8.6 INTERNALS UPGRADE NOTES
1414
1. Internal API changes
1515
========================
1616

17+
. ZSTR_INIT_LITERAL(), zend_string_starts_with_literal(), and
18+
zend_string_starts_with_literal_ci() now support strings containing NUL
19+
bytes. Passing non-literal char* is no longer supported.
20+
. The misnamed ZVAL_IS_NULL() has been removed. Use Z_ISNULL() instead.
21+
1722
========================
1823
2. Build system changes
1924
========================

Zend/Optimizer/block_pass.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,19 @@ bool zend_optimizer_get_persistent_constant(zend_string *name, zval *result, int
4242
if (copy) {
4343
Z_TRY_ADDREF_P(result);
4444
}
45-
return 1;
45+
return true;
4646
} else {
47-
return 0;
47+
return false;
4848
}
4949
}
5050

5151
/* Special constants null/true/false can always be substituted. */
5252
c = zend_get_special_const(ZSTR_VAL(name), ZSTR_LEN(name));
5353
if (c) {
5454
ZVAL_COPY_VALUE(result, &c->value);
55-
return 1;
55+
return true;
5656
}
57-
return 0;
57+
return false;
5858
}
5959

6060
/* Data dependencies macros */
@@ -949,14 +949,14 @@ static void zend_optimize_block(zend_basic_block *block, zend_op_array *op_array
949949
src = VAR_SOURCE(opline->op1);
950950
if (src && src->opcode == ZEND_QM_ASSIGN) {
951951
zend_op *op = src + 1;
952-
bool optimize = 1;
952+
bool optimize = true;
953953

954954
while (op < opline) {
955955
if ((op->op1_type == opline->op1_type
956956
&& op->op1.var == opline->op1.var)
957957
|| (op->op2_type == opline->op1_type
958958
&& op->op2.var == opline->op1.var)) {
959-
optimize = 0;
959+
optimize = false;
960960
break;
961961
}
962962
op++;
@@ -1566,14 +1566,14 @@ static void zend_t_usage(zend_cfg *cfg, zend_op_array *op_array, zend_bitset use
15661566
}
15671567

15681568
if (ctx->debug_level & ZEND_DUMP_BLOCK_PASS_VARS) {
1569-
bool printed = 0;
1569+
bool printed = false;
15701570
uint32_t i;
15711571

15721572
for (i = op_array->last_var; i< op_array->T; i++) {
15731573
if (zend_bitset_in(used_ext, i)) {
15741574
if (!printed) {
15751575
fprintf(stderr, "NON-LOCAL-VARS: %d", i);
1576-
printed = 1;
1576+
printed = true;
15771577
} else {
15781578
fprintf(stderr, ", %d", i);
15791579
}

0 commit comments

Comments
 (0)