Derick Rethans
c2ff964de0
Merge branch 'PHP-7.4' into PHP-8.0
2021-03-16 09:41:40 +00:00
Derick Rethans
4adc08a403
Fix build version too
2021-03-16 09:41:21 +00:00
Derick Rethans
7dbe27222c
Merge branch 'PHP-7.4' into PHP-8.0
2021-03-16 09:40:21 +00:00
Derick Rethans
5e4ee3d0bd
NEWS for 7.4.18
2021-03-16 09:40:05 +00:00
Derick Rethans
eb1d1fe373
Prepare for 7.4.17RC1
2021-03-16 09:33:33 +00:00
Máté Kocsis
465aa1d38f
Fix ldap_next_entry() parameter name
2021-03-16 09:31:46 +01:00
Máté Kocsis
b03438ba3a
Fix crash in LDAP search functions during argument validation
2021-03-16 09:31:37 +01:00
Máté Kocsis
5ecc078a17
Add missing skipif sections to ext/dom tests
2021-03-15 23:45:37 +01:00
Christoph M. Becker
eae69fcf71
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Fix #80817 : dba_popen() may cause segfault during RSHUTDOWN
2021-03-15 18:39:26 +01:00
Christoph M. Becker
f448b0e6dd
Fix #80817 : dba_popen() may cause segfault during RSHUTDOWN
...
We need to close persistent streams with the proper flag.
2021-03-15 18:37:44 +01:00
Nikita Popov
50254de0a2
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Fix bug #80866
2021-03-15 14:48:02 +01:00
Dharman
282355efd5
Fix bug #80866
...
Closes GH-6774.
2021-03-15 14:47:45 +01:00
Nikita Popov
6493b516f9
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Fix bug #80837
2021-03-15 14:38:49 +01:00
Dharman
c93b461ad7
Fix bug #80837
...
The error needs to be reported on the statement, not the connection.
2021-03-15 14:38:09 +01:00
Nikita Popov
3306baca50
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Update ubuntu on i386 job
Downgrade security level in tests using TLS < 1.2
2021-03-15 14:12:42 +01:00
Nikita Popov
fc4cd598a2
Update ubuntu on i386 job
...
There is a failure with apt on PHP-7.4 that's not present on
PHP-8.0/master. Switching to a newer ubuntu version on PHP-7.4
avoids the issue.
2021-03-15 14:11:19 +01:00
Nikita Popov
703bbf5210
Downgrade security level in tests using TLS < 1.2
...
A few additional tests have been added on master that require
lower security level.
(cherry picked from commit c2a6395dcb )
2021-03-15 14:11:12 +01:00
Michael Heimpold
eaf9421df6
ext/opcache: fix configure output while checking mmap MAP_ANON support
...
It seems that f3efb9e3fb introduced a "typo" which may result
in the following confusing message:
checking for mmap() using MAP_ANON shared memory support... no=yes
Let's fix this.
Signed-off-by: Michael Heimpold <mhei@heimpold.de >
Closes GH-6758.
2021-03-15 10:52:57 +01:00
Dmitry Stogov
3b377b51a2
Fixed bug #80814 (threaded mod_php won't load on FreeBSD: No space available for static Thread Local Storage)
2021-03-10 16:03:47 +03:00
Christoph M. Becker
7931956805
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Fix #51903 : simplexml_load_file() doesn't use HTTP headers
2021-03-08 15:15:59 +01:00
Christoph M. Becker
f901bec494
Fix #51903 : simplexml_load_file() doesn't use HTTP headers
...
The `encoding` attribute of the XML declaration is optional; it is good
practice to use external encoding information where available if it is
missing. Thus, we check for `charset` info of `Content-Type` headers,
and see whether the encoding is supported.
We cater to trailing parameters and quoted-strings, but not to escaped
backslashes and quotes in quoted-strings, since no known character
encoding contains these anyway.
Co-authored-by: Michael Wallner <mike@php.net >
Closes GH-6747.
2021-03-08 15:07:01 +01:00
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