Skip to content
forked from php/php-src

sync #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1,430 commits into from
May 5, 2023
Merged

sync #21

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1430 commits
Select commit Hold shift + click to select a range
da96aa8
Merge branch 'PHP-8.2'
nielsdos Mar 30, 2023
5e76c6d
[ci skip] NEWS
nielsdos Mar 30, 2023
cd7d2c8
Merge branch 'PHP-8.1' into PHP-8.2
nielsdos Mar 30, 2023
47b3fe4
Handle indirect zvals and use up-to-date properties in SplFixedArray:…
nielsdos Mar 24, 2023
930db2b
Merge branch 'PHP-8.2'
nielsdos Mar 30, 2023
213248a
Document zend_get_op_array_extension_handle
morrisonlevi Mar 30, 2023
960f071
[skip ci] Fix PHP 8.2.5 release date in NEWS
adoy Mar 31, 2023
7359a45
Merge branch 'PHP-8.2'
adoy Mar 31, 2023
41bbb11
Unary minus const expression consistency
iluuu1994 Mar 30, 2023
ed80a7e
Merge branch 'PHP-8.1' into PHP-8.2
iluuu1994 Mar 31, 2023
ba33bbe
Merge branch 'PHP-8.2'
iluuu1994 Mar 31, 2023
66ce205
Fix incorrect zval type_flags in preg_replace_callback_array() for im…
iluuu1994 Mar 29, 2023
d1fc88c
Merge branch 'PHP-8.1' into PHP-8.2
iluuu1994 Mar 31, 2023
fced34e
Merge branch 'PHP-8.2'
iluuu1994 Mar 31, 2023
ed0b773
[skip ci] Avoid infinite loop in differ
iluuu1994 Apr 1, 2023
cf9b030
Fix GH-8841: php-cli core dump calling a badly formed function
nielsdos Apr 1, 2023
79c5b32
Fix GH-10990: mail() throws TypeError after iterating over $additiona…
nielsdos Apr 1, 2023
0d12b3d
Merge branch 'PHP-8.1' into PHP-8.2
nielsdos Apr 1, 2023
dd29b66
Fix GH-10983: State-dependant segfault in ReflectionObject::getProper…
nielsdos Mar 30, 2023
3ab6e76
Merge branch 'PHP-8.2'
nielsdos Apr 1, 2023
c211e67
Remove XFAIL from test cases for mb_strcut when used with JIS or ISO-…
alexdowad Mar 29, 2023
50f58c8
Add ASAN XLEAK support
iluuu1994 Apr 2, 2023
84b4020
Fix add_function_array() assertion when op2 contains op1
iluuu1994 Mar 29, 2023
c4f56c5
Merge branch 'PHP-8.1' into PHP-8.2
iluuu1994 Apr 3, 2023
8360efd
Merge branch 'PHP-8.2'
iluuu1994 Apr 3, 2023
fc88f15
Add zend_alloc XLEAK support
iluuu1994 Apr 3, 2023
8a749c7
Tracing JIT: Fixed incorrect code generation fofr SEND-ing of result …
dstogov Apr 3, 2023
962aac6
Merge branch 'PHP-8.1' into PHP-8.2
dstogov Apr 3, 2023
9a81231
Merge branch 'PHP-8.2'
dstogov Apr 3, 2023
3a21a87
[skip ci] Notify Slack on nightly failure
iluuu1994 Apr 3, 2023
aeb32bb
Merge branch 'PHP-8.1' into PHP-8.2
iluuu1994 Apr 3, 2023
ce47e59
Merge branch 'PHP-8.2'
iluuu1994 Apr 3, 2023
0579beb
Fix incorrect error handling in dom_zvals_to_fragment()
nielsdos Mar 30, 2023
94a00e9
Merge branch 'PHP-8.1' into PHP-8.2
nielsdos Apr 3, 2023
fb5e77b
Merge branch 'PHP-8.2'
nielsdos Apr 3, 2023
0a169cb
Add forgotten upgrading note for the Readonly amendments RFC
kocsismate Apr 3, 2023
f42992f
Remove name field from the zend_constant struct (#10954)
kocsismate Apr 3, 2023
44b1619
Cleanup pubkey checks in ext/phar (#11009)
nielsdos Apr 4, 2023
bf123da
[Zend]: Fix unnecessary alignment in ZEND_CALL_FRAME_SLOT macro (#10988)
Apr 4, 2023
9e86142
Add ngx-php to opcache supported sapis (#11013)
joanhey Apr 4, 2023
915b283
Delay freeing of overwritten values in assignments
dstogov Feb 16, 2023
f43fa59
Add various tests for GH-10168
iluuu1994 Feb 16, 2023
b39107c
Delay destructor for zend_assign_to_typed_ref
iluuu1994 Feb 16, 2023
24acb4f
Delay destructor for zend_std_write_property
dstogov Mar 2, 2023
fdbea4f
Add GC_DTOR/GC_DTOR_NO_REF macros
iluuu1994 Mar 3, 2023
e1c6fb7
JIT support for delayed destructor for zend_assign_to_typed_ref/prop
dstogov Apr 3, 2023
3528ca8
Add note for GH-10168 to UPGRADING.INTERNALS
iluuu1994 Apr 4, 2023
ac3abe4
Revert "Zend/zend_types.h: move `zend_string` to `zend_string.h`"
dstogov Apr 4, 2023
61b19ba
Revert "Zend/zend_types.h: move `zend_uchar.h` to `zend_char.h`"
dstogov Apr 4, 2023
e2f0ce9
Revert "Zend/zend_types.h: move `zend_refcounted` to `zend_refcounted…
dstogov Apr 4, 2023
4f724ac
Revert "Zend/zend_type_code.h: convert to `enum`"
dstogov Apr 4, 2023
0e70693
Revert "Zend/zend_types.h: move `IS_*` to `zend_type_code.h`"
dstogov Apr 4, 2023
59905d8
Revert "Zend/zend_rc_debug: convert `ZEND_RC_MOD_CHECK()` to function"
dstogov Apr 4, 2023
c9d728c
Revert "Zend/zend_types.h: move `zend_rc_debug` to `zend_rc_debug.h`"
dstogov Apr 4, 2023
706a9b2
Revert "Zend/zend_types.h: move `zend_result` to separate header (#10…
dstogov Apr 4, 2023
d5484bf
Remove includes
dstogov Apr 4, 2023
c796ce5
Re-add GC_DTOR and GC_DTOR_NO_REF
dstogov Apr 4, 2023
b2c5acb
[skip ci] Add NEWS entry for GH-10168 and GH-10582
iluuu1994 Apr 5, 2023
b81ce29
Fix GH-9397: exif read : warnings and errors : Potentially invalid en…
nielsdos Jan 29, 2023
2d2cf3b
Merge branch 'PHP-8.1' into PHP-8.2
nielsdos Apr 5, 2023
ebf86d2
Merge branch 'PHP-8.2'
nielsdos Apr 5, 2023
9a250cc
Add separate static property through trait if parent already declares it
iluuu1994 Mar 25, 2023
1c276aa
Use zend_call_known_instance_method() instead of building FCI/FCC in …
Girgias Apr 6, 2023
3fb63f7
Extract common code for phar IO intercept functions
Girgias Apr 5, 2023
96ffdd4
size variable is only used once, move closer to usage
Girgias Apr 5, 2023
06896d1
Improve locality of stream variable
Girgias Apr 5, 2023
8e51cfe
Use zend_string_concat helper instead of strpprintf
Girgias Apr 5, 2023
7d93ef0
Convert char* + size_t parameters to zend_string* in phar_find_in_inc…
Girgias Apr 5, 2023
15802df
Add FPM FastCGI env var test for Apache without path info fix
bukka Apr 6, 2023
1ca1858
Merge branch 'PHP-8.1' into PHP-8.2
bukka Apr 6, 2023
f17cf2e
Merge branch 'PHP-8.2'
bukka Apr 6, 2023
2ef1930
Fix number of elements after packed hash filling (#11022)
nielsdos Apr 6, 2023
ede8adb
Fix GH-11016: Heap buffer overflow in ZEND_ADD_ARRAY_UNPACK_SPEC_HAND…
nielsdos Apr 6, 2023
ebb3213
Add FPM FCGI env Apache handler UDS test
bukka Apr 7, 2023
0b4f2fc
Merge branch 'PHP-8.1' into PHP-8.2
bukka Apr 7, 2023
7de83e2
Merge branch 'PHP-8.2'
bukka Apr 7, 2023
e67bb14
Fixed tests and remove the XFAIL 'Various bugs exist'. They did, but …
derickr Apr 7, 2023
51faf04
Fix GH-10737: PHP 8.1.16 segfaults on line 597 of sapi/apache2handler…
nielsdos Mar 15, 2023
9261ff7
Merge branch 'PHP-8.1' into PHP-8.2
nielsdos Apr 8, 2023
115afee
Merge branch 'PHP-8.2'
nielsdos Apr 8, 2023
421c56d
Use zend_string for DBA path (#10698)
Girgias Apr 8, 2023
6c532df
ext/sockets adding FreeBSD's SO_REUSEPORT_LB constant.
devnexen Apr 8, 2023
b9af980
Add case insensitive versions of the zend_string_starts_with_* APIs (…
Girgias Apr 10, 2023
a72778b
ext/phar: Prevent unnecessary known string length computation
Girgias Apr 10, 2023
4082d42
ext/phar: Remove duplicate cleaning-up code
Girgias Apr 10, 2023
c4a1100
Fix unevaluated rhs of class constant fetch in constant expression (#…
iluuu1994 Apr 10, 2023
d64c718
Remove unneeded occurrences of my name in UPGRADING
alexdowad Apr 10, 2023
aa51871
Add more details to NEWS on mb_detect_encoding; also include in UPGRA…
alexdowad Apr 10, 2023
a62d192
Add additional note on mb_encode_mimeheader in UPGRADING
alexdowad Apr 10, 2023
7cef7cb
Add more details in UPGRADING on mb_check_encoding changes
alexdowad Apr 10, 2023
0bd826a
Merge branch 'PHP-8.2'
alexdowad Apr 10, 2023
0c65b39
Allow FETCH_OBJ_W and FETCH_STATIC_PROP_W to return INDIRECT/UNDEF zv…
dstogov Apr 10, 2023
e14ac1c
Merge branch 'PHP-8.1' into PHP-8.2
dstogov Apr 10, 2023
0660fb5
Merge branch 'PHP-8.2'
dstogov Apr 10, 2023
ad99798
ext/curl: Protocol should be a case insensitive check (#11052)
Girgias Apr 11, 2023
4be6435
Use curl from brew on MacOS CI
bukka Apr 11, 2023
d638c0d
Merge branch 'PHP-8.1' into PHP-8.2
bukka Apr 11, 2023
471dcf6
Merge branch 'PHP-8.2'
bukka Apr 11, 2023
86ffde3
Improve ini number handling with INI_SCANNER_TYPED
iluuu1994 Apr 4, 2023
450fcc4
[ci skip] UPDATE NEWS
nielsdos Apr 11, 2023
805f21b
Merge branch 'PHP-8.1' into PHP-8.2
nielsdos Apr 11, 2023
c0c80b5
Merge branch 'PHP-8.2'
nielsdos Apr 11, 2023
884eb4b
Merge remote-tracking branch 'derickr/fixed-broken-date-time-tests' i…
derickr Apr 12, 2023
d3f82f3
Merge branch 'PHP-8.1' into PHP-8.2
derickr Apr 12, 2023
71ff744
Merge branch 'PHP-8.2'
derickr Apr 12, 2023
aae20cd
ext/phar: Fix recently introduced potential NULL dereferencement segf…
Girgias Apr 12, 2023
6ebd08b
Optimize HT_HASH_RESET (#11059)
nielsdos Apr 12, 2023
6df7557
mb_parse_str, mb_http_input, and mb_convert_variables use fast text c…
alexdowad Apr 2, 2023
00008a8
Remove unnecessary memory clearing in virtual_file_ex() (#10963)
nielsdos Apr 12, 2023
dd44a93
Fix test bug60120.phpt
iluuu1994 Apr 12, 2023
de9ea68
Merge branch 'PHP-8.1' into PHP-8.2
iluuu1994 Apr 13, 2023
92669d7
Merge branch 'PHP-8.2'
iluuu1994 Apr 13, 2023
4b22c3e
[skip ci] Skip bug45161.phpt on Windows
iluuu1994 Apr 13, 2023
adcb38b
xxhash.h: Fix GCC 12 -Og
Apr 12, 2023
023e17a
Merge branch 'PHP-8.1' into PHP-8.2
iluuu1994 Apr 13, 2023
49fd630
Merge branch 'PHP-8.2'
iluuu1994 Apr 13, 2023
2eeff96
[skip ci] Fix Slack notification
iluuu1994 Apr 11, 2023
edd4980
Merge branch 'PHP-8.1' into PHP-8.2
iluuu1994 Apr 13, 2023
5823955
Merge branch 'PHP-8.2'
iluuu1994 Apr 13, 2023
afbc71d
Add benchmarking to CI
iluuu1994 Apr 6, 2023
d126031
Restrict benchmarking push to php org
iluuu1994 Apr 14, 2023
8d5e06d
Fix commit sha in commit name
iluuu1994 Apr 14, 2023
a0476fd
Micro-optimize double comparison (#11061)
nielsdos Apr 14, 2023
f4ede23
Fix commit hash really this time
iluuu1994 Apr 14, 2023
fc32d39
Fix GH-11028: Heap Buffer Overflow in zval_undefined_cv.
nielsdos Apr 8, 2023
1799327
Merge branch 'PHP-8.1' into PHP-8.2
nielsdos Apr 15, 2023
a44acde
Merge branch 'PHP-8.2'
nielsdos Apr 15, 2023
0ac55e9
Add zend_test_crash funtion to segfault PHP process
bukka Apr 15, 2023
9a20f43
Merge branch 'PHP-8.1' into PHP-8.2
bukka Apr 15, 2023
35647aa
Merge branch 'PHP-8.2'
bukka Apr 15, 2023
24cc402
Benchmarking mean (#11085)
iluuu1994 Apr 15, 2023
2044e5a
Fix uninitialized variable compile error
iluuu1994 Apr 15, 2023
af809ef
Fix CI benchmarking diff
iluuu1994 Apr 15, 2023
84be904
Add missing zend_test_crash message initialization
bukka Apr 16, 2023
6d33a1a
Merge branch 'PHP-8.1' into PHP-8.2
bukka Apr 16, 2023
e6d2705
Merge branch 'PHP-8.2'
bukka Apr 16, 2023
581e729
fpm: remove 2 unneeded newlines from zlog call
SjonHortensius Apr 14, 2023
e8b8341
Support enums in array_unique
iluuu1994 Apr 4, 2023
35c1bb2
Merge branch 'PHP-8.1' into PHP-8.2
iluuu1994 Apr 16, 2023
4dad419
Merge branch 'PHP-8.2'
iluuu1994 Apr 16, 2023
414f71a
Typed class constants (#10444)
kocsismate Apr 16, 2023
5a40831
ext/openssl: pass ini options to extra processes in tests
jakub-bumble Mar 31, 2023
b340e10
Fix uninitialized memory in parse_ini_string()
iluuu1994 Apr 17, 2023
31e21f7
Fix GH-11071: Revert "Fix [-Wundef] warning in INTL extension"
remicollet Apr 14, 2023
f5dc2c3
Merge branch 'PHP-8.1' into PHP-8.2
remicollet Apr 18, 2023
c75facb
Merge branch 'PHP-8.2'
remicollet Apr 18, 2023
6e8f0f5
[ci skip] NEWS for 11071
remicollet Apr 18, 2023
5c6ccc4
Merge branch 'PHP-8.1' into PHP-8.2
remicollet Apr 18, 2023
6adf2f6
[ci skip] NEWS for 11071
remicollet Apr 18, 2023
71a1e30
Merge branch 'PHP-8.2'
remicollet Apr 18, 2023
44eef67
Import timelib 2022.06
derickr Apr 17, 2023
cc7b799
Fixed tests
derickr Apr 17, 2023
d1af263
Merge remote-tracking branch 'derickr/fix-datetime-diff-around-dst-tr…
derickr Apr 18, 2023
1dcab8a
Add NEWS entry
derickr Apr 18, 2023
360e6f8
Merge branch 'PHP-8.2'
derickr Apr 18, 2023
af6b413
[skip ci] Add all conflict to curl
iluuu1994 Apr 19, 2023
f948f79
Merge branch 'PHP-8.1' into PHP-8.2
iluuu1994 Apr 19, 2023
b22758d
Merge branch 'PHP-8.2'
iluuu1994 Apr 19, 2023
0ab51a9
Fix mysql tests with non-standard server port
mvorisek Oct 14, 2022
72fc8b5
Merge branch 'PHP-8.1' into PHP-8.2
iluuu1994 Apr 20, 2023
4af95b7
Merge branch 'PHP-8.2'
iluuu1994 Apr 20, 2023
91d3aaa
Bump OCI8 version to make a PECL release for 8.2
cjbj Apr 20, 2023
05467b9
Merge branch 'pecloci8' into PHP-8.2
cjbj Apr 20, 2023
b06a6b8
Merge branch 'PHP-8.2'
cjbj Apr 20, 2023
5855bdc
Fix reference returned from CallbackFilterIterator::accept()
iluuu1994 Apr 20, 2023
b2282be
Merge branch 'PHP-8.1' into PHP-8.2
iluuu1994 Apr 20, 2023
04fd04a
Merge branch 'PHP-8.2'
iluuu1994 Apr 20, 2023
6f63d4b
Fix -Wenum-int-mismatch warnings on gcc 13
iluuu1994 Apr 19, 2023
4c38a79
Fix incorrect CG(memoize_mode) state after bailout in ??=
iluuu1994 Apr 20, 2023
439919c
Merge branch 'PHP-8.1' into PHP-8.2
iluuu1994 Apr 20, 2023
6ca6b46
Merge branch 'PHP-8.2'
iluuu1994 Apr 20, 2023
f06da77
ci update freebsd image to the 13.2 image (#11110)
devnexen Apr 21, 2023
629d774
Import timelib 2022.07 to address OSS fuzz issue
derickr Apr 21, 2023
4ce00aa
Merge branch 'PHP-8.2'
derickr Apr 21, 2023
976d7ed
ext/intl: deprecate U_MULTIPLE_DECIMAL_SEPERATORS constant
devnexen Mar 30, 2023
1209f59
Allow CTE on basic type/math functions (#10842)
mvorisek Apr 24, 2023
947eb95
Allow array functions to operate in-place if the refcount is 1 (#11060)
nielsdos Apr 24, 2023
691ff9f
Set error_log to an empty value if the test relies on that feature
nielsdos Mar 4, 2023
7300659
Merge branch 'PHP-8.1' into PHP-8.2
nielsdos Apr 24, 2023
56f916e
Merge branch 'PHP-8.2'
nielsdos Apr 24, 2023
725f136
PHP-8.1 is now for PHP 8.1.20-dev
patrickallaert Apr 25, 2023
c598a92
Merge branch 'PHP-8.1' into PHP-8.2
patrickallaert Apr 25, 2023
eee6509
Merge branch 'PHP-8.2'
patrickallaert Apr 25, 2023
04a5f2b
Add test to make sure that readonly properties cannot be reassigned b…
kocsismate Apr 25, 2023
8318f4a
PHP-8.2 is now for PHP 8.2.7-dev
saundefined Apr 25, 2023
8086baa
Merge branch 'PHP-8.2'
saundefined Apr 25, 2023
f89fe83
Minor conditions simplify (#10397)
mvorisek Apr 26, 2023
3a76f79
Fix incorrect match default branch optimization
iluuu1994 Apr 26, 2023
368dd81
Merge branch 'PHP-8.1' into PHP-8.2
iluuu1994 Apr 26, 2023
a00e223
Merge branch 'PHP-8.2'
iluuu1994 Apr 26, 2023
7b4b40f
ext/sockets: addig Linux's IP_BIND_ADDRESS_NO_PORT.
devnexen Apr 22, 2023
f0149c5
Fix ZPP of pg_lo_export()
kocsismate Apr 25, 2023
a2d90aa
Merge branch 'PHP-8.1' into PHP-8.2
kocsismate Apr 27, 2023
945db3c
Merge branch 'PHP-8.2'
kocsismate Apr 27, 2023
294d3e9
[ci skip] Add zeriyoshi to CODEOWNERS for ext-random (#11148)
zeriyoshi Apr 28, 2023
732d92c
[skip ci] Fix various typos and grammar issues (#11143)
javiereguiluz Apr 28, 2023
6a9061e
Fix GH-9344: pgsql pipeline mode proposal.
devnexen Mar 17, 2023
bbe42a5
[skip ci] UPGRADING highligh last intl deprecation difference
devnexen Apr 29, 2023
8bf2d58
Propagate STREAM_DISABLE_OPEN_BASEDIR src flag to php_stream_stat_pat…
iluuu1994 Apr 28, 2023
de9b3f6
Merge branch 'PHP-8.1' into PHP-8.2
iluuu1994 Apr 30, 2023
4472443
Merge branch 'PHP-8.2'
iluuu1994 Apr 30, 2023
5ad6571
Allow aliasing namespaces containing reserved class names
iluuu1994 Apr 28, 2023
4f74e86
Merge branch 'PHP-8.2'
iluuu1994 Apr 30, 2023
b915a1d
Fix uninitialised variable warning in mbfilter_sjis.c
nielsdos Apr 29, 2023
5cbc917
Update libenchant in arm build
iluuu1994 Apr 30, 2023
fde0c7d
Merge branch 'PHP-8.1' into PHP-8.2
iluuu1994 Apr 30, 2023
706696f
Merge branch 'PHP-8.2'
iluuu1994 Apr 30, 2023
43e267a
[skip ci] Upgrade libmysql version
iluuu1994 May 1, 2023
9f15193
Merge branch 'PHP-8.1' into PHP-8.2
iluuu1994 May 1, 2023
96e1d3f
Merge branch 'PHP-8.2'
iluuu1994 May 1, 2023
dc20cd9
Endless recursion when using + on array in foreach
iluuu1994 May 1, 2023
50127ce
Merge branch 'PHP-8.1' into PHP-8.2
iluuu1994 May 1, 2023
e2bd92f
Merge branch 'PHP-8.2'
iluuu1994 May 1, 2023
8fc023c
[skip ci] Fix tmp file clash in ext/zip/tests/oo_cancel.phpt
iluuu1994 May 1, 2023
574d780
Merge branch 'PHP-8.1' into PHP-8.2
iluuu1994 May 1, 2023
626331f
Merge branch 'PHP-8.2'
iluuu1994 May 1, 2023
bf727cf
RFC: Make unserialize() emit a warning for trailing bytes (#9630)
TimWolla May 1, 2023
25ad171
JIT: Fixed inaccurate range inference usage for UNDEF/NULL/FALSE
dstogov May 2, 2023
7e50735
Merge branch 'PHP-8.1' into PHP-8.2
dstogov May 2, 2023
f012266
Merge branch 'PHP-8.2'
dstogov May 2, 2023
f127e65
JIT: Align JIT stubs (#11149)
PeterYang12 May 2, 2023
e2f477c
Fix negative indices on empty array not affecting next chosen index
ColinHDev Apr 28, 2023
0e5ac62
Add configuration opcache.jit_max_trace_length (#11173)
May 2, 2023
ed0b593
Fixed GH-11127 (JIT fault)
dstogov May 2, 2023
c155949
Merge branch 'PHP-8.1' into PHP-8.2
dstogov May 2, 2023
56d1cc7
Merge branch 'PHP-8.2'
dstogov May 2, 2023
fbf5216
Fix too wide OR and AND range inference
nielsdos Apr 30, 2023
e1fc246
Merge branch 'PHP-8.1' into PHP-8.2
nielsdos May 2, 2023
41cda46
Merge branch 'PHP-8.2'
nielsdos May 2, 2023
d82e96c
[skip ci] Link technical resources in CONTRIBUTING.md
iluuu1994 Apr 28, 2023
11597d1
Add retry mechanism in run-tests.php
iluuu1994 Mar 20, 2023
81b2d2e
Merge branch 'PHP-8.1' into PHP-8.2
iluuu1994 May 3, 2023
4e6025a
Merge branch 'PHP-8.2'
iluuu1994 May 3, 2023
36559fb
Remove unused macro PHP_FNV1_32A_INIT and PHP_FNV1A_64_INIT (#11114)
NilsIrl May 3, 2023
ef6bbaa
Downgrade to Ubuntu 20.04 for ASAN nightly for now
iluuu1994 Apr 18, 2023
4ca8daf
Fix GH-9068: Conditional jump or move depends on uninitialised value(s)
nielsdos May 2, 2023
d75c1d0
Fix GH-11175 and GH-11177: Stream socket timeout undefined behaviour
nielsdos May 2, 2023
81e50b4
Fix GH-11178: Segmentation fault in spl_array_it_get_current_data (PH…
nielsdos May 2, 2023
ab3f584
Merge branch 'PHP-8.1' into PHP-8.2
nielsdos May 3, 2023
001e278
Merge branch 'PHP-8.2'
nielsdos May 3, 2023
f6c0c60
Fix GH-11104: STDIN/STDOUT/STDERR is not available for CLI without a …
nielsdos Apr 30, 2023
a65cdd9
Implement NEON-accelerated version of BLOCKCONV for lowercasing and u…
nielsdos May 4, 2023
84c185c
ext/pgsql: pg_cancel_query internal update.
devnexen Apr 15, 2023
05bd142
Fix GH-11189: Exceeding memory limit in zend_hash_do_resize leaves th…
bwoebi May 5, 2023
7ec8ae1
ext/pgsql: pg_trace allow to refine its trace mode via 2 new constants.
devnexen Apr 9, 2023
cfbb47b
Merge branch 'PHP-8.1' into PHP-8.2
bwoebi May 5, 2023
a9d11b6
Merge branch 'PHP-8.2'
bwoebi May 5, 2023
bb38ad7
Add new test for array_fill() to cover the case when the parameter co…
jquiaios May 5, 2023
2e0f75e
ext/pgsql: pg_lo_read addressing the todo. (#11159)
devnexen May 5, 2023
c02348c
Make SERVER_SOFTWARE compliant with RFC3875 (#11093)
cedric-anne May 5, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ environment:
#PDO_MYSQL_TEST_PASS: Password12!
#PGSQL_TEST_CONNSTR: "host=127.0.0.1 dbname=test port=5432 user=postgres password=Password12!"
#PDO_PGSQL_TEST_DSN: "pgsql:host=127.0.0.1 port=5432 dbname=test user=postgres password=Password12!"
STACK_LIMIT_DEFAULTS_CHECK: 1
#build permutations
matrix:
- THREAD_SAFE: 0
Expand Down
208 changes: 204 additions & 4 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ asan_task:
image: gcc:latest
additional_containers:
- name: mysql
image: mysql:latest
image: mysql:8
port: 3306
cpu: 1.0
memory: 1G
env:
MYSQL_ROOT_PASSWORD: "root"
MYSQL_DATABASE: "test"
Expand Down Expand Up @@ -160,10 +162,10 @@ asan_task:
tests_script:
- export SKIP_IO_CAPTURE_TESTS=1
- export CI_NO_IPV6=1
- export MYSQL_TEST_HOST=mysql
- export MYSQL_TEST_HOST=127.0.0.1
- export MYSQL_TEST_USER=root
- export MYSQL_TEST_PASSWD=root
- export PDO_MYSQL_TEST_DSN="mysql:host=mysql;dbname=test"
- export PDO_MYSQL_TEST_DSN="mysql:host=127.0.0.1;dbname=test"
- export PDO_MYSQL_TEST_USER=root
- export PDO_MYSQL_TEST_PASS=root
- >-
Expand All @@ -182,7 +184,9 @@ asan_task:
freebsd_task:
name: FREEBSD_DEBUG_NTS
freebsd_instance:
image_family: freebsd-13-0
image_family: freebsd-13-2
env:
ARCH: amd64
install_script:
#- sed -i -e 's/quarterly/latest/g' /etc/pkg/FreeBSD.conf
#- pkg upgrade -y
Expand All @@ -201,4 +205,200 @@ freebsd_task:
tests_script:
- export SKIP_IO_CAPTURE_TESTS=1
- export CI_NO_IPV6=1
- export STACK_LIMIT_DEFAULTS_CHECK=1
- sapi/cli/php run-tests.php -P -q -j2 -g FAIL,BORK,LEAK,XLEAK --no-progress --offline --show-diff --show-slow 1000 --set-timeout 120 -d zend_extension=opcache.so

arm_task:
name: ARM_DEBUG_NTS
arm_container:
image: gcc:12
additional_containers:
- name: mysql
image: mysql:8
port: 3306
cpu: 1.0
memory: 1G
env:
MYSQL_ALLOW_EMPTY_PASSWORD: true
MYSQL_ROOT_PASSWORD: ""
MYSQL_DATABASE: "test"
- name: postgres
image: postgres:latest
port: 5432
env:
POSTGRES_PASSWORD: "postgres"
POSTGRES_DB: "test"
install_script:
- export DEBIAN_FRONTEND=noninteractive
- apt-get update -y
- >-
apt-get install -y
bison
re2c
locales
locales-all
ldap-utils
openssl
slapd
libgmp-dev
libicu-dev
libtidy-dev
libenchant-2-dev
libaspell-dev
libpspell-dev
libsasl2-dev
libxpm-dev
libzip-dev
libsqlite3-dev
libwebp-dev
libonig-dev
libkrb5-dev
libgssapi-krb5-2
libcurl4-openssl-dev
libxml2-dev
libxslt1-dev
libpq-dev
libreadline-dev
libldap2-dev
libsodium-dev
libargon2-0-dev
libmm-dev
libsnmp-dev
snmpd
`#snmp-mibs-downloader`
freetds-dev
`#unixodbc-dev`
libc-client-dev
dovecot-core
dovecot-pop3d
dovecot-imapd
sendmail
firebird-dev
liblmdb-dev
libtokyocabinet-dev
libdb-dev
libqdbm-dev
libjpeg-dev
libpng-dev
libfreetype6-dev
build_script:
- ./buildconf -f
- >-
./configure
--enable-debug
--enable-zts
--enable-option-checking=fatal
--prefix=/usr
--enable-phpdbg
--enable-fpm
--enable-opcache
--with-pdo-mysql=mysqlnd
--with-mysqli=mysqlnd
--with-pgsql
--with-pdo-pgsql
--with-pdo-sqlite
--enable-intl
--without-pear
--enable-gd
--with-jpeg
--with-webp
--with-freetype
--with-xpm
--enable-exif
--with-zip
--with-zlib
--with-zlib-dir=/usr
--enable-soap
--enable-xmlreader
--with-xsl
--with-tidy
--enable-sysvsem
--enable-sysvshm
--enable-shmop
--enable-pcntl
--with-readline
--enable-mbstring
--with-curl
--with-gettext
--enable-sockets
--with-bz2
--with-openssl
--with-gmp
--enable-bcmath
--enable-calendar
--enable-ftp
--with-pspell=/usr
--with-enchant=/usr
--with-kerberos
--enable-sysvmsg
--with-ffi
--enable-zend-test
--enable-dl-test=shared
--with-ldap
--with-ldap-sasl
--with-password-argon2
--with-mhash
--with-sodium
--enable-dba
--with-cdb
--enable-flatfile
--enable-inifile
--with-tcadb
--with-lmdb
--with-qdbm
--with-snmp
`#--with-unixODBC`
--with-imap
--with-kerberos
--with-imap-ssl
`#--with-pdo-odbc=unixODBC,/usr`
`#--with-pdo-oci=shared,instantclient,/opt/oracle/instantclient`
`#--with-oci8=shared,instantclient,/opt/oracle/instantclient`
--with-config-file-path=/etc
--with-config-file-scan-dir=/etc/php.d
--with-pdo-firebird
`#--with-pdo-dblib`
--disable-phpdbg
`#--enable-werror`
- make -j2 > /dev/null
- make install
- mkdir -p /etc/php.d
- echo opcache.enable_cli=1 > /etc/php.d/opcache.ini
- echo opcache.protect_memory=1 >> /etc/php.d/opcache.ini
# Specify opcache.preload_user as we're running as root.
- echo opcache.preload_user=root >> /etc/php.d/opcache.ini
tests_script:
- export SKIP_IO_CAPTURE_TESTS=1
- export CI_NO_IPV6=1
- export MYSQL_TEST_HOST=127.0.0.1
- export MYSQL_TEST_USER=root
- export MYSQL_TEST_PASSWD=
- export PDO_MYSQL_TEST_DSN="mysql:host=127.0.0.1;dbname=test"
- export PDO_MYSQL_TEST_USER=root
- export PDO_MYSQL_TEST_PASS=
- export PDO_PGSQL_TEST_DSN="pgsql:host=127.0.0.1 port=5432 dbname=test user=postgres password=postgres"
- >-
sapi/cli/php run-tests.php
-d zend_extension=opcache.so
-d opcache.enable_cli=1
-d opcache.jit_buffer_size=16M
-d opcache.jit=function
-P -q -x -j2
-g FAIL,BORK,LEAK,XLEAK
--offline
--show-diff
--show-slow 1000
--set-timeout 120
- >-
sapi/cli/php run-tests.php
-d zend_extension=opcache.so
-d opcache.enable_cli=1
-d opcache.jit_buffer_size=16M
-d opcache.jit=tracing
-P -q -x -j2
-g FAIL,BORK,LEAK,XLEAK
--offline
--show-diff
--show-slow 1000
--set-timeout 120
--repeat 2
2 changes: 1 addition & 1 deletion .gdbinit
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ end

define print_pi
set $pi = (zend_property_info *)$arg0
set $initial_offset = ((uint32_t)(zend_uintptr_t)(&((zend_object*)0)->properties_table[(0)]))
set $initial_offset = ((uint32_t)(uintptr_t)(&((zend_object*)0)->properties_table[(0)]))
set $ptr_to_val = (zval*)((char*)$pi->ce->default_properties_table + $pi->offset - $initial_offset)
printf "[%p] {\n", $pi
printf " offset = %p\n", $pi->offset
Expand Down
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@
**/*_arginfo.h linguist-generated
/Zend/zend_vm_execute.h linguist-generated
/Zend/zend_vm_opcodes.{h,c} linguist-generated

# The OSS fuzz files are bunary
/ext/date/tests/ossfuzz*.txt binary
1 change: 1 addition & 0 deletions .github/actions/apt-x32/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ runs:
apt-get install -y \
autoconf \
bison \
curl \
g++-multilib \
gcc-multilib \
language-pack-de \
Expand Down
1 change: 1 addition & 0 deletions .github/actions/brew/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ runs:
re2c
brew install \
[email protected] \
curl \
krb5 \
bzip2 \
enchant \
Expand Down
1 change: 1 addition & 0 deletions .github/actions/configure-macos/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ runs:
set -x
export PATH="/usr/local/opt/bison/bin:$PATH"
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/[email protected]/lib/pkgconfig"
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/curl/lib/pkgconfig"
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/krb5/lib/pkgconfig"
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/libffi/lib/pkgconfig"
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/libxml2/lib/pkgconfig"
Expand Down
10 changes: 10 additions & 0 deletions .github/actions/notify-slack/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Notify Slack
inputs:
token:
required: true
runs:
using: composite
steps:
- shell: bash
run: >-
curl -X POST -H 'Content-type: application/json' --data '{"attachments": [{"text": "Job in *nightly* failed", "footer": "<https://github.com/php/php-src/actions/runs/${{ github.run_id }}|View Run>", "color": "danger", "mrkdwn_in": ["text"]}]}' ${{ inputs.token }}
5 changes: 1 addition & 4 deletions .github/actions/setup-x64/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,14 @@ runs:
set -x

sudo service mysql start
sudo service postgresql start
sudo service slapd start
mysql -uroot -proot -e "CREATE DATABASE IF NOT EXISTS test"
# Ensure local_infile tests can run.
mysql -uroot -proot -e "SET GLOBAL local_infile = true"
sudo -u postgres psql -c "ALTER USER postgres PASSWORD 'postgres';"
sudo -u postgres psql -c "CREATE DATABASE test;"
docker exec sql1 /opt/mssql-tools/bin/sqlcmd -S 127.0.0.1 -U SA -P "<YourStrong@Passw0rd>" -Q "create login pdo_test with password='password', check_policy=off; create user pdo_test for login pdo_test; grant alter, control to pdo_test;"
sudo locale-gen de_DE

./.github/scripts/setup-slapd.sh &>/dev/null
./.github/scripts/setup-slapd.sh

sudo cp ext/snmp/tests/snmpd.conf /etc/snmp
sudo cp ext/snmp/tests/bigtest /etc/snmp
Expand Down
3 changes: 3 additions & 0 deletions .github/actions/test-linux/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@ runs:
export PDO_OCI_TEST_USER="system"
export PDO_OCI_TEST_PASS="pass"
export PDO_OCI_TEST_DSN="oci:dbname=localhost/XEPDB1;charset=AL32UTF8"
export PGSQL_TEST_CONNSTR="host=postgres dbname=test port=5432 user=postgres password=postgres"
export PDO_PGSQL_TEST_DSN="host=postgres dbname=test port=5432 user=postgres password=postgres"
export SKIP_IO_CAPTURE_TESTS=1
export TEST_PHP_JUNIT=junit.out.xml
export STACK_LIMIT_DEFAULTS_CHECK=1
sapi/cli/php run-tests.php -P -q ${{ inputs.runTestsParameters }} \
-j$(/usr/bin/nproc) \
-g FAIL,BORK,LEAK,XLEAK \
Expand Down
1 change: 1 addition & 0 deletions .github/actions/test-macos/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ runs:
export SKIP_IO_CAPTURE_TESTS=1
export CI_NO_IPV6=1
export TEST_PHP_JUNIT=junit.out.xml
export STACK_LIMIT_DEFAULTS_CHECK=1
sapi/cli/php run-tests.php -P -q ${{ inputs.runTestsParameters }} \
-j$(sysctl -n hw.ncpu) \
-g FAIL,BORK,LEAK,XLEAK \
Expand Down
2 changes: 2 additions & 0 deletions .github/lsan-suppressions.txt
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
leak:acommon::DictInfoList::elements
leak:timer_create
leak:netsnmp_init_mib_internals
9 changes: 7 additions & 2 deletions .github/nightly_matrix.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ function get_matrix_include(array $branches) {
'configuration_parameters' => "CFLAGS='-fsanitize=undefined,address -DZEND_TRACK_ARENA_ALLOC' LDFLAGS='-fsanitize=undefined,address'",
'run_tests_parameters' => '--asan',
'test_function_jit' => false,
'asan' => true,
];
if ($branch['ref'] !== 'PHP-8.0') {
$jobs[] = [
Expand All @@ -63,6 +64,7 @@ function get_matrix_include(array $branches) {
'run_tests_parameters' => '--repeat 2',
'timeout_minutes' => 360,
'test_function_jit' => true,
'asan' => false,
];
$jobs[] = [
'name' => '_VARIATION',
Expand All @@ -72,6 +74,7 @@ function get_matrix_include(array $branches) {
'configuration_parameters' => "CFLAGS='-DZEND_RC_DEBUG=1 -DPROFITABILITY_CHECKS=0 -DZEND_VERIFY_FUNC_INFO=1'",
'timeout_minutes' => 360,
'test_function_jit' => true,
'asan' => false,
];
}
}
Expand All @@ -88,5 +91,7 @@ function get_matrix_include(array $branches) {
$branches = get_branches();
$matrix_include = get_matrix_include($branches);

echo '::set-output name=branches::' . json_encode($branches, JSON_UNESCAPED_SLASHES) . "\n";
echo '::set-output name=matrix-include::' . json_encode($matrix_include, JSON_UNESCAPED_SLASHES) . "\n";
$f = fopen(getenv('GITHUB_OUTPUT'), 'a');
fwrite($f, 'branches=' . json_encode($branches, JSON_UNESCAPED_SLASHES) . "\n");
fwrite($f, 'matrix-include=' . json_encode($matrix_include, JSON_UNESCAPED_SLASHES) . "\n");
fclose($f);
6 changes: 4 additions & 2 deletions .github/scripts/setup-slapd.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
set -ex
set -e

# Create TLS certificate
sudo mkdir -p /etc/ldap/ssl
Expand Down Expand Up @@ -42,7 +42,9 @@ sudo sed -e 's|^\s*SLAPD_SERVICES\s*=.*$|SLAPD_SERVICES="ldap:/// ldaps:/// ldap
# Configure LDAP database.
DBDN=`sudo ldapsearch -Q -LLL -Y EXTERNAL -H ldapi:/// -b cn=config '(&(olcRootDN=*)(olcSuffix=*))' dn | grep -i '^dn:' | sed -e 's/^dn:\s*//'`;

sudo ldapadd -Q -Y EXTERNAL -H ldapi:/// -f /etc/ldap/schema/ppolicy.ldif
if test -f "/etc/ldap/schema/ppolicy.ldif"; then
sudo ldapadd -Q -Y EXTERNAL -H ldapi:/// -f /etc/ldap/schema/ppolicy.ldif
fi

sudo service slapd restart

Expand Down
Loading