Sara Golemon
e6b8b52302
Update versions for PHP 8.0.24RC1
php-8.0.24RC1
2022-09-13 23:23:20 +00:00
Sara Golemon
afef2f01b2
Update NEWS for PHP 8.0.24RC1
2022-09-13 23:23:20 +00:00
Michael Voříšek
9a73ec0367
Always skip randomly failing OCI8 extauth tests
...
This might be caused by an issue with the Oracle Instant Client
libraries[1]; we skip the tests for the time being.
[1] <https://github.com/php/php-src/pull/9524#issuecomment-1244409815 >
Closes GH-9524.
2022-09-13 14:21:23 +02:00
George Peter Banyard
47500f3300
Fix GH-9421 Incorrect argument number for ValueError in NumberFormatter
...
Closes GH-9489
2022-09-13 12:42:58 +01:00
George Peter Banyard
293e69179d
Fix GH-9308 GMP throws the wrong error when a GMP object is passed to gmp_init()
...
Closes GH-9490
2022-09-13 11:24:19 +01:00
Dmitry Stogov
d0b3096ff0
Reset FG(user_stream_current_filename) at the end of request
...
Attempt to fix oss-fuzz #51047
2022-09-12 11:38:31 +03:00
Ilija Tovilo
4a8cca241f
Skip oci tests that leak under asan
2022-09-08 15:56:13 +02:00
Ilija Tovilo
aa7f4497bf
Fix undefined left shift in oci
...
The bit is shifted into the signed bit which is undefined. Make the
integer explicitly unsigned before shifting.
2022-09-08 15:56:10 +02:00
Ilija Tovilo
d5373eac46
Fix lsp error in eval'd code referring to incorrect class for static type
...
Fixes GH-9407
Closes GH-9471
2022-09-08 10:52:27 +02:00
Ilija Tovilo
1435fc6262
Private method incorrectly marked as "overwrites" in reflection
...
Fix GH-9409
Closes GH-9469
2022-09-08 10:43:25 +02:00
Yurun
6ac3f7c84d
Fix GH-9411: PgSQL large object resource is incorrectly closed
...
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de >
Closes GH-9411.
2022-09-05 16:37:54 +02:00
Dmitry Stogov
81cb005ef7
Fix type inference
...
Fixes oss-fuzz #50792
2022-09-05 12:55:50 +03:00
Arnaud Le Blanc
6aedc5eaf0
[ci skip] NEWS
2022-09-02 13:48:56 +02:00
Arnaud Le Blanc
db1ef97209
Add tests
2022-09-02 13:33:21 +02:00
Nicolas Grekas
93f11d8429
Fix GH-8932: Provide a way to get the called-scope of closures ( #9299 )
...
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de >
2022-09-02 13:32:50 +02:00
Sara Golemon
3d6ed8c852
Catch up dev version numbers
2022-08-30 12:15:27 +00:00
Jakub Zelenka
3503b1daa2
Fix bug #77780 : "Headers already sent" when previous connection was aborted
...
This change primarily splits SAPI deactivation to module and destroy
parts. The reason is that currently some SAPIs might bail out
on deactivation. One of those SAPI is PHP-FPM that can bail out on
request end if for example the connection is closed by the client
(web sever). The problem is that in such case the resources are not
freed and some values reset. The most visible impact can have not
resetting the PG(headers_sent) which can cause erorrs in the next
request. One such issue is described in #77780 bug which this fixes
and is also cover by a test in this commit. It seems reasonable
to separate deactivation and destroying of the resource which means
that the bail out will not impact it.
2022-08-29 22:25:53 +01:00
Jakub Zelenka
986e7319c5
Re-add fixed tests for GH-8885
2022-08-29 16:42:10 +01:00
Jakub Zelenka
bcdd9877e1
Fix GH-8885 tests on MacOS
2022-08-29 16:40:31 +01:00
Dmitry Stogov
263a07e5b0
typo
2022-08-29 17:12:57 +03:00
Dmitry Menshikov
f92505cf24
Fix GH-8885: access.log with stderr writes logs to error_log after reload
...
This fix allows restoring the the original stderr so the logs are
correctly written.
2022-08-29 14:39:24 +01:00
Dmitry Stogov
4135e6011c
Fix memory leak
...
Fixes oss-fuzz #50616
2022-08-29 14:53:48 +03:00
Christoph M. Becker
725cb4e8ad
Revert "Fix GH-9296: ksort behaves incorrectly on arrays with mixed keys"
...
This reverts commit cd1aed8edd , as
discussed on internals (<https://externals.io/message/118483 >).
2022-08-29 12:41:36 +02:00
Dmitry Stogov
ce42dcf483
Fix ext/opcache/tests/jit/inc_obj_004.phpt failure introduced by fd74ee7e90
...
This should fix GH-9445
2022-08-29 12:30:14 +03:00
David Carlier
e2a5428ca0
FPM fix strict prototype warnings.
...
Closes GH-8986.
2022-08-28 23:24:23 +01:00
Michael Voříšek
f86629569c
Fix pdo_dblib ext test conflicts when run in parallel
...
Closes GH-9430.
2022-08-26 14:57:13 +02:00
Michael Voříšek
34d9e089c2
Fix GH-8348 for nightly
2022-08-26 10:56:58 +02:00
Michael Voříšek
be4dd60c55
Fix oci8/pdo_oci random test failures when run in parallel
...
Closes GH-9424.
2022-08-25 15:20:50 +02:00
Christoph M. Becker
f59754694e
xmlRelaxNGCleanupTypes() is deprecated as of libxml2 2.10.0
...
The documentation[1] suggest to call `xmlCleanupParser()` instead, but
we are not doing that for reasons[2]. Thus, we do no longer call
`xmlRelaxNGCleanupTypes()` for libxml2 ≥ 2.10.0.
[1] <https://gnome.pages.gitlab.gnome.org/libxml2/devhelp/libxml2-relaxng.html#xmlRelaxNGCleanupTypes >
[2] <8742276eb3 >
Closes GH-9417.
2022-08-25 15:10:30 +02:00
Michael Voříšek
c19116ff09
Test oci8 & pdo_oci in CI
...
Closes GH-8348
2022-08-24 16:45:34 +02:00
Dmitry Stogov
fd74ee7e90
JIT: Make code generation to be consistent with register allocation
...
Fixes ext/opcache/tests/jit/add_014.phpt with opcache.jit=1205
2022-08-22 19:53:33 +03:00
Dmitry Stogov
73c2d79fc5
Fix memory leaks
...
Fixes oss-fuzz #50078
2022-08-22 17:47:07 +03:00
Dmitry Stogov
c9c51eb1f1
Tracing JIT: Fix incorrect guard elimination
...
Fixes oss-fuzz #49917
2022-08-22 15:38:41 +03:00
Christoph M. Becker
bb341210f5
Fix GH-9361: Segmentation fault on script exit
...
Using a lot of memory may overflow some `int` calculations; to avoid
that we make sure that the operands are promoted to `size_t`.
This issue has been analyzed by @chschneider.
Closes GH-9379.
2022-08-22 12:59:17 +02:00
Michael Voříšek
305892580e
Fix pdo_oci tests for PHP 8.0
2022-08-22 09:25:43 +02:00
NathanFreeman
6027d441c1
Fix #79451 : DOMDocument->replaceChild on doctype causes double free
...
We have to reset intSubset if replacing doctype with another doctype node.
Closes GH-9201.
Closes GH-9376.
2022-08-19 18:10:06 +02:00
David Carlier
52e312afb8
opcache jit fix message format for OpenBSD.
...
like macOs it requires `ll`.
Closes #9380 .
2022-08-19 16:40:29 +01:00
George Peter Banyard
d6831e9a5c
Revert Fixed bug #79451
...
The fix for 8.1 and above is not identical and I don't know how to fix without breaking the whole build apparently
2022-08-19 13:54:54 +01:00
Tim Starling
ba029fce68
Fix GH-9323: crash when the VM enters userspace code via the GC
...
Closes GH-9323
2022-08-19 12:50:02 +01:00
Tim Starling
410e5d48a3
Fix GCC 9.4 uninitialized variable warning
...
ext/opcache/zend_accelerator_blacklist.c:295:4: error: ‘blacklist_path_length’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
2022-08-19 12:46:55 +01:00
NathanFreeman
1d4300d870
Fix bug #79451 : Using DOMDocument->replaceChild on doctype causes double free
...
Closes GH-9201
2022-08-19 12:46:23 +01:00
Christoph M. Becker
72da418719
Fix GH-9316: $http_response_header is wrong for long status line
...
While the reason-phrase in a HTTP response status line is usually
short, there is no actual limit specified by the RFCs. As such, we
must not assume that the line fits into the buffer (which is currently
128 bytes large).
Since there is no real need to present the complete status line, we
simply read and discard the rest of a long line.
Co-authored-by: Tim Düsterhus <timwolla@googlemail.com >
Closes GH-9319.
2022-08-18 12:27:54 +02:00
Jakub Zelenka
84dcf578b1
Fix GH-9339: OpenSSL oid_file path check warning contains uninitialized path
2022-08-17 19:49:36 +01:00
Gabriel Caruso
7c6316ad1c
Prepare for 8.0.24
2022-08-17 11:56:42 +02:00
Gert de Pagter
05ed47ef12
Correct IntlDateFormatter::formatObject params
...
Closes GH-9341.
2022-08-15 17:56:34 +02:00
twosee
b8d07451d4
Re-fix GH-8409: SSL handshake timeout persistent connections hanging
...
This fix is another solution to replace d0527427be , use zend_try and zend_catch to make sure persistent stream will be released when error occurred.
Closes GH-9332.
2022-08-14 20:13:36 +08:00
Denis Vaksman
cd1aed8edd
Fix GH-9296: ksort behaves incorrectly on arrays with mixed keys
...
The comparator function used at ksort in SORT_REGULAR mode
need to be consistent with basic comparison rules. These rules
were changed in PHP-8.0 for numeric strings, but comparator
used at ksort kept the old behaviour. It leads to inconsistent
situations, when after ksort the first key is GREATER than some
of the next ones by according to the basic comparison operators.
Closes GH-9293.
2022-08-12 11:32:23 +02:00
Derick Rethans
962d8bd0b6
The data for Tehran has changed, update test
2022-08-11 16:26:33 +01:00
Derick Rethans
c6992121cc
Updated to version 2022.2 (2022b)
2022-08-11 15:54:28 +01:00
Vladislav Senin
8aeae636e3
Fixes CI macOs, replacing now disabled tidyp dependency to tidy-html5.
2022-08-10 21:46:25 +01:00