Christoph M. Becker
3880b8785b
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Fix #80838 : HTTP wrapper waits for HTTP 1 response after HTTP 101
2021-03-08 14:51:45 +01:00
manuel
5787f91c55
Fix #80838 : HTTP wrapper waits for HTTP 1 response after HTTP 101
...
Don't wait for further responses after a HTTP 101 (Switching Protocols) response
Closes GH-6730.
2021-03-08 14:36:31 +01:00
Máté Kocsis
0f8312342f
Fix the error message of attribute flag validation
2021-03-06 00:56:25 +01:00
George Wang
8462a3de1a
Merge branch 'PHP-7.4' into PHP-8.0
2021-03-05 11:00:53 -05:00
George Wang
8fc0bdfb0a
Merge branch 'PHP-7.4' of git.php.net:php-src into PHP-7.4
2021-03-05 10:57:46 -05:00
George Wang
797edd6211
LiteSpeed SAPI v7.9: Process manager keeps forked child process alive for longer time based on load. Reduces PM overhead for busy setup.
2021-03-05 10:46:12 -05:00
David Carlier
ae23852e41
Add supports for FreeBSD's PROT_MAX to let mprotect knows X flag can be applied in addition.
...
Closes GH-6738.
2021-03-05 16:44:08 +01:00
Christoph M. Becker
1c16749eaa
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Print error code if CreateMutex() fails
2021-03-05 15:08:24 +01:00
Christoph M. Becker
e0e167e581
Print error code if CreateMutex() fails
...
This issue came up recently in a bug report[1]; without the error code,
users can barely guess why the function failed.
[1] <https://bugs.php.net/80812 >
Closes GH-6745.
2021-03-05 15:06:18 +01:00
Dmitry Stogov
187ba4353a
Fix ASAN warning (Zend/zend_string.h:165:2: runtime error: null pointer passed as argument 2 of memcpy(), which is declared to never be null)
2021-03-04 17:27:26 +03:00
Christoph M. Becker
4f478af16d
Fix #80825 : ZipArchive::isCompressionMethodSupported does not exist
...
`HAVE_METHOD_SUPPORTED` should have been defined after we updated to
libzip 1.7.1 months ago.
2021-03-03 22:56:42 +01:00
Christoph M. Becker
303a4ae44a
Fix test wrt. server.inc changes
2021-03-03 12:04:06 +01:00
Christoph M. Becker
90b24401d6
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Fix #78719 : http wrapper silently ignores long Location headers
2021-03-03 10:47:51 +01:00
Christoph M. Becker
51e2015af3
Fix #78719 : http wrapper silently ignores long Location headers
...
When opening HTTP streams, and reading the headers, we currently
discard header lines longer than `HTTP_HEADER_BLOCK_SIZE` (1024 bytes).
While this is not generally forbidden by RFC 7230, section 3.2.5, it
is not generally allowed either, since that may change the "message
framing or response semantics".
We thus fix this by allowing arbitrarily long header lines.
Closes GH-6720.
2021-03-03 10:45:25 +01:00
Dmitry Stogov
957cb13a49
Fixed bug #80802 : (zend_jit_fetch_indirect_var assert failure with tracing JIT)
2021-03-01 23:57:20 +03:00
Christoph M. Becker
37c9728615
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Fix #80751 : Comma in recipient name breaks email delivery
2021-03-01 18:50:11 +01:00
Christoph M. Becker
71297a254b
Fix #80751 : Comma in recipient name breaks email delivery
...
So far, `SendText()` simply separates potential email address lists at
any comma, disregarding that commas inside a quoted-string do not
delimit addresses. We fix that by introducing an own variant of
`strtok_r()` which caters to quoted-strings.
We also make `FormatEmailAddress()` aware of quoted strings.
We do not cater to email address comments, and potentially other quirks
of RFC 5322 email addresses, but catering to quoted-strings is supposed
to solve almost all practical use cases.
Co-authored-by: Nikita Popov <nikita.ppv@gmail.com >
Closes GH-6735.
2021-03-01 18:46:21 +01:00
Nikita Popov
75a4f484f0
Fixed bug #80811
...
When filling in defaults for skipped params, make sure that
reference parameters get the expected reference wrapper.
2021-03-01 16:30:01 +01:00
Nikita Popov
5875bf754e
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Always remove HT iterators, even for uninit HT
2021-03-01 16:22:29 +01:00
Nikita Popov
2c508c4d40
Always remove HT iterators, even for uninit HT
...
Fixes oss-fuzz #31423 .
2021-03-01 16:22:11 +01:00
Nikita Popov
2c182a77f7
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Fixed bug #80805
2021-03-01 15:13:25 +01:00
Nikita Popov
e857936518
Fixed bug #80805
...
Handle missing result_var in binary_op_result_type.
(cherry picked from commit 8446e28275 )
2021-03-01 15:13:15 +01:00
George Peter Banyard
1ee6aad248
Fix Bug #80800 imap_open() fails when the flags parameter includes CL_EXPUNGE
...
This also affected imap_reopen().
Add a supplementary test that the CL_EXPUNGE flag does have
the intended effect.
Closes GH-6732
2021-02-27 13:12:22 +00:00
Felipe Pena
8813f2e0c3
Merge branch 'PHP-7.4' into PHP-8.0
2021-02-25 20:54:24 +00:00
Felipe Pena
988c3f9659
Fix memleak on ReflectionFunction and ReflectionGenerator classes when calling __construct after instantiation
2021-02-25 20:53:14 +00:00
Remi Collet
18071aaa08
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
skip test with openssl < 1.1.0
2021-02-25 13:54:19 +01:00
Remi Collet
ae0585c98e
skip test with openssl < 1.1.0
...
The test fails, but without any crash
(this test is designed to catch a crash)
2021-02-25 13:52:35 +01:00
Christoph M. Becker
fb683030bf
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Capture Microsoft-defined HRESULT exit codes exit codes
2021-02-25 12:03:43 +01:00
Dylan K. Taylor
a480bf8093
Capture Microsoft-defined HRESULT exit codes exit codes
...
The lack of such a check leads to false-passes of tests on Windows
which expect no output, but produce a segfault or similar issue. I
discovered this a while ago due to bad tests in an extension I maintain.
Closes GH-6722.
2021-02-25 12:01:04 +01:00
David CARLIER
ddea5c0816
crc32 module, clang spurious warning removal.
...
Closes GH-6725.
2021-02-25 10:17:21 +01:00
Nikita Popov
f06efce387
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
mysqlnd pam fix test error message
2021-02-25 09:52:07 +01:00
Daniel Black
8309c04464
mysqlnd pam fix test error message
...
Closes GH-6727.
2021-02-25 09:51:51 +01:00
Nikita Popov
44ef32ff2c
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Fix potential file collision in dom tests
2021-02-24 21:30:44 +01:00
Nikita Popov
766f827e26
Fix potential file collision in dom tests
2021-02-24 21:30:20 +01:00
Felipe Pena
aaea81de7c
Merge branch 'PHP-7.4' into PHP-8.0
2021-02-24 19:07:22 +00:00
Felipe Pena
3ec37a74a2
Fix bug #80757 (Exit code is 0 when could not open file)
2021-02-24 18:50:27 +00:00
Felipe Pena
78b0a85de6
Update NEWS
2021-02-24 18:40:32 +00:00
Dmitry Stogov
b7fa5268e4
Fixed bug #80782 (DASM_S_RANGE_VREG on PHP_INT_MIN-1)
2021-02-24 12:20:20 +03:00
Christoph M. Becker
8162c3d1fd
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
run-tests: fixed exit code not being set on BORKED tests
2021-02-23 13:22:50 +01:00
Christoph M. Becker
67bb06cc9b
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
run-tests: fixed exit code not being set on BORKED tests
2021-02-23 13:15:30 +01:00
Dylan K. Taylor
729cd8bacd
run-tests: fixed exit code not being set on BORKED tests
...
When no test paths are specified this shows up when 'make test' is used on a PECL extension without specifying tests to run (or in php-src too, I guess...)
Closes GH-6717.
2021-02-23 12:50:03 +01:00
Christoph M. Becker
3f282e57ec
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Update php_version.h to proper version number
2021-02-23 12:16:15 +01:00
Christoph M. Becker
81396ea890
Update php_version.h to proper version number
2021-02-23 12:09:06 +01:00
Nikita Popov
79cf2c56d3
Fixed bug #80786
...
Don't use r0 as temporary register in math_double_long if it is
already used for a memory result.
This was already done in one branch, but not the other.
2021-02-23 10:22:00 +01:00
Christoph M. Becker
b418fe266d
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Fix #75776 : Flushing streams with compression filter is broken
2021-02-22 15:32:17 +01:00
Christoph M. Becker
963e50c8c4
Fix #75776 : Flushing streams with compression filter is broken
...
First, the `bzip2.compress` filter has the same issue as `zlib.deflate`
so we port the respective fix[1] to ext/bz2.
Second, there is still an issue, if a stream with an attached
compression filter is flushed before it is closed, without any writes
in between. In that case, the compression is never finalized. We fix
this by enforcing a `_php_stream_flush()` with the `closing` flag set
in `_php_stream_free()`, whenever a write filter is attached. This
call is superfluous for most write filters, but does not hurt, even
when it is unnecessary.
[1] <http://git.php.net/?p=php-src.git;a=commit;h=20e75329f2adb11dd231852c061926d0e4080929 >
Closes GH-6703.
2021-02-22 15:28:46 +01:00
Christoph M. Becker
1d2bbce532
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Fix #80771 : phpinfo(INFO_CREDITS) displays nothing in CLI
2021-02-22 14:34:21 +01:00
Christoph M. Becker
073b6ea818
Fix #80771 : phpinfo(INFO_CREDITS) displays nothing in CLI
...
There is no good reason not to show the credits in text based SAPIs,
except for brevity. Thus, we suppress the credits from `php -i`.
Closes GH-6710.
2021-02-22 14:31:51 +01:00
Christoph M. Becker
6dcd640f35
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Fix #80774 : session_name() problem with backslash
2021-02-22 12:35:23 +01:00
Christoph M. Becker
d7c98ca1ac
Fix #80774 : session_name() problem with backslash
...
Since we do no longer URL decode cookie names[1], we must not URL
encode the session name. We need to prevent broken Set-Cookie headers,
by rejecting names which contain invalid characters.
[1] <http://git.php.net/?p=php-src.git;a=commit;h=6559fe912661ca5ce5f0eeeb591d928451428ed0 >
Closes GH-6711.
2021-02-22 12:32:56 +01:00