Christoph M. Becker
9313cd899e
Don't enforce 64 hit counter on Windows
...
There is no particular need to have a 64bit hit counter on Windows.
Closes GH-9367.
2022-08-22 17:49:30 +02:00
George Peter Banyard
66aed3a86f
SameSite session cookie prop should behave like other INI settings
...
It should warn if the INI setting is changed after headers are sent or a session is not active
2022-08-22 16:09:46 +01:00
Dmitry Stogov
a44fb09620
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Fix memory leaks
2022-08-22 17:54:36 +03:00
Dmitry Stogov
5bab9e94fd
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix memory leaks
2022-08-22 17:47:43 +03:00
Dmitry Stogov
73c2d79fc5
Fix memory leaks
...
Fixes oss-fuzz #50078
2022-08-22 17:47:07 +03:00
George Peter Banyard
a8f8cc207c
Check sessions are active before output emitted consistently
2022-08-22 15:45:43 +01:00
George Peter Banyard
ad3ee47c6d
Remove OnUpdateTransSid validator
...
It is more restrictive than the OnUpdateSessionBool one
2022-08-22 15:45:43 +01:00
George Peter Banyard
e9749a3c1e
Remove OnUpdateLazyWrite validator
...
It is identical to the OnUpdateSessionBool one
2022-08-22 15:45:43 +01:00
George Peter Banyard
a75de167bf
Add test for negative cookie lifetime
2022-08-22 15:45:43 +01:00
George Peter Banyard
e8e015777e
Use bool instead of int in session struct
2022-08-22 15:45:43 +01:00
George Peter Banyard
d0d6dae8f7
Add a new zend API to check that strings don't have NUL bytes ( #9375 )
...
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de >
2022-08-22 15:28:38 +01:00
Dmitry Stogov
a5d84ba0d8
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Tracing JIT: Fix incorrect guard elimination
2022-08-22 15:42:28 +03:00
Dmitry Stogov
5762fc52c6
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Tracing JIT: Fix incorrect guard elimination
2022-08-22 15:39:47 +03:00
Dmitry Stogov
c9c51eb1f1
Tracing JIT: Fix incorrect guard elimination
...
Fixes oss-fuzz #49917
2022-08-22 15:38:41 +03:00
Máté Kocsis
66c4ade0fe
Declare ext/intl constants in stubs - part 14 ( #9387 )
2022-08-22 13:20:26 +02:00
Christoph M. Becker
a7d084b955
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Fix GH-9361: Segmentation fault on script exit
2022-08-22 13:01:56 +02:00
Christoph M. Becker
6427c4b858
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix GH-9361: Segmentation fault on script exit
2022-08-22 13:00:48 +02: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
Máté Kocsis
ae95644f36
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Fix pdo_oci tests for PHP 8.0
2022-08-22 09:29:32 +02:00
Máté Kocsis
3e0f144b2c
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix pdo_oci tests for PHP 8.0
2022-08-22 09:28:29 +02:00
Michael Voříšek
305892580e
Fix pdo_oci tests for PHP 8.0
2022-08-22 09:25:43 +02:00
Máté Kocsis
06f86bfc65
Declare phpdbg constants in stubs ( #9392 )
2022-08-21 19:05:17 +02:00
Máté Kocsis
51eb1d4f6c
Fix curl/sync_constants.php ( #9391 )
2022-08-21 18:04:33 +02:00
Máté Kocsis
f743cb0f69
Declare ext/intl constants in stubs - part 13 ( #9385 )
2022-08-21 13:12:38 +02:00
Máté Kocsis
0897266219
Fix GH-9285 Traits cannot be used in readonly classes
2022-08-21 10:33:08 +02:00
Máté Kocsis
d7383ed807
Declare ext/tidy constants in stubs ( #9383 )
2022-08-20 17:08:28 +02:00
Máté Kocsis
e6e26b444d
Declare ext/curl constants in stubs ( #9384 )
2022-08-20 11:01:40 +02:00
Christoph M. Becker
742b4bac2c
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Fix #79451 : DOMDocument->replaceChild on doctype causes double free
2022-08-19 18:14:48 +02:00
Christoph M. Becker
9bd9e9a867
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix #79451 : DOMDocument->replaceChild on doctype causes double free
2022-08-19 18:13:48 +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
5a9411d086
Merge branch 'PHP-8.1'
2022-08-19 16:41:06 +01:00
David Carlier
9360cd6add
Merge branch 'PHP-8.0' into PHP-8.1
2022-08-19 16:40:54 +01: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
d766e91681
Merge branch 'PHP-8.1'
2022-08-19 13:57:59 +01:00
George Peter Banyard
eb8ea14c66
Merge branch 'PHP-8.0' into PHP-8.1
2022-08-19 13:57:19 +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
Christoph M. Becker
a1f5c8a587
Fix GH-9227: Trailing dots and spaces in filenames are ignored
...
Given that Windows ignores trailing dots and spaces in filenames, we
catch that ourselves to avoid confusion with the respective filenames
without these characters.
Closes GH-9229.
2022-08-19 14:23:57 +02:00
George Peter Banyard
1109989bbd
Merge branch 'PHP-8.1'
2022-08-19 13:18:12 +01:00
George Peter Banyard
5739dd0030
Fix bad merge
2022-08-19 13:17:57 +01:00
George Peter Banyard
6a7935351b
Merge branch 'PHP-8.1'
2022-08-19 12:55:12 +01:00
George Peter Banyard
c36a1ea1ae
Merge branch 'PHP-8.0' into PHP-8.1
2022-08-19 12:52:58 +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
Remi Collet
aa702c5459
add compat stuff for function attributes
2022-08-18 13:46:55 +02:00
Christoph M. Becker
45a3f4cab0
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Fix GH-9316: $http_response_header is wrong for long status line
2022-08-18 12:31:56 +02:00
Christoph M. Becker
5d196d9e7c
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix GH-9316: $http_response_header is wrong for long status line
2022-08-18 12:30:45 +02: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
cb5d5d885c
Merge branch 'PHP-8.1'
2022-08-17 19:50:58 +01:00
Jakub Zelenka
93bed982e8
Merge branch 'PHP-8.0' into PHP-8.1
2022-08-17 19:50:16 +01:00