summaryrefslogtreecommitdiff
path: root/ext
Commit message (Collapse)AuthorAgeFilesLines
* Fix PDOStatement::bindColumn() parameter default valuePHP-8.0Máté Kocsis2021-03-252-3/+3
|
* XFAIL on WIN64 because of problem in libffiDmitry Stogov2021-03-241-0/+1
| | | | (cherry picked from commit 6689bedd1796380f882fdecc6dcf8da1ff885c2b)
* Merge branch 'PHP-7.4' into PHP-8.0Christoph M. Becker2021-03-241-1/+1
|\ | | | | | | | | * PHP-7.4: Fix #73533: Invalid memory access in php_libxml_xmlCheckUTF8
| * Fix #73533: Invalid memory access in php_libxml_xmlCheckUTF8PHP-7.4Christoph M. Becker2021-03-241-1/+1
| | | | | | | | | | | | | | A string passed to `php_libxml_xmlCheckUTF8()` may be longer than 1<<31-1 bytes, so we're better using a `size_t`. Closes GH-6802.
* | Merge branch 'PHP-7.4' into PHP-8.0Christoph M. Becker2021-03-231-1/+2
|\ \ | |/ | | | | | | * PHP-7.4: Properly initialize PS(mod) on RINIT
| * Properly initialize PS(mod) on RINITChristoph M. Becker2021-03-231-1/+2
| | | | | | | | | | | | | | | | | | We need to do that in case a user handler has been set. However, we can't do that in `php_rinit_session_globals()` since that function is called by PHP function `session_destroy()` too, but in that case we don't want to reset PS(mod). Closes GH-6795.
* | Merge branch 'PHP-7.4' into PHP-8.0Christoph M. Becker2021-03-222-16/+50
|\ \ | |/ | | | | | | * PHP-7.4: Fix #80889: amendment
| * Fix #80889: amendmentChristoph M. Becker2021-03-222-16/+50
| | | | | | | | | | | | | | | | | | | | `session_set_save_handler()` may be called with callables instead of an object; we need to cater to that as well. We also extract a set_user_save_handler_ini() function to avoid code duplication. Closes GH-6796.
* | Merge branch 'PHP-7.4' into PHP-8.0Jakub Zelenka2021-03-211-5/+42
|\ \ | |/
| * Use ServerClientTestCase in a test for default_socket_timeout=-1Jakub Zelenka2021-03-211-5/+42
| |
* | Merge branch 'PHP-7.4' into PHP-8.0Christoph M. Becker2021-03-192-1/+38
|\ \ | |/ | | | | | | * PHP-7.4: Fix #80889: Cannot set save handler when save_handler is invalid
| * Fix #80889: Cannot set save handler when save_handler is invalidChristoph M. Becker2021-03-192-1/+38
| | | | | | | | | | | | | | | | There is no need to require a (valid) save_handler to be set, when a user handler is supposed to be set. We just have to make sure, that no user handler is already set in this case. Closes GH-6788.
* | Merge branch 'PHP-7.4' into PHP-8.0Christoph M. Becker2021-03-183-2/+77
|\ \ | |/ | | | | | | * PHP-7.4: Fix #80783: PDO ODBC truncates BLOB records at every 256th byte
| * Fix #80783: PDO ODBC truncates BLOB records at every 256th byteChristoph M. Becker2021-03-183-2/+77
| | | | | | | | | | | | | | | | | | | | | | | | It is not guaranteed, that the driver inserts only a single NUL byte at the end of the buffer. Apparently, there is no way to find out the actual data length in the buffer after calling `SQLGetData()`, so we adjust after the next `SQLGetData()` call. We also prevent PDO::ODBC_ATTR_ASSUME_UTF8 from fetching garbage, by fetching all chunks with the same C type. Closes GH-6716.
* | Additional fix for bug #80847.Dmitry Stogov2021-03-182-3/+83
| | | | | | | | On x86_64 part of structure may be passed in CPU registers.
* | Merge branch 'PHP-7.4' into PHP-8.0Nikita Popov2021-03-182-1/+19
|\ \ | |/ | | | | | | * PHP-7.4: Fix locale switch back to C in pcre
| * Fix locale switch back to C in pcreNikita Popov2021-03-182-1/+19
| | | | | | | | | | | | The compile context is shared between patterns, so we need to set the character tables unconditionally in case we switched from a non-C locale to the C locale.
* | Fixed bug #80861 (erronous array key overflow in 2D array with JIT)Dmitry Stogov2021-03-172-1/+112
| |
* | Fix signed/unsigned warnings in PDO ODBCNikita Popov2021-03-173-13/+15
| | | | | | | | | | | | Add add skipif to test. (cherry picked from commit aa58db723221ec891d4432621003bfa55dc15edf)
* | imagecolortransparent() cannot return nullNikita Popov2021-03-172-3/+3
| |
* | Return bool from imageinterlace()Nikita Popov2021-03-177-14/+14
| | | | | | | | | | | | | | The function accepts a bool since PHP 8.0, so it should also return a bool to keep things consistent. Furthermore a null return from this functions is not possible.
* | Fixed bug #80839 (PHP problem with JIT)Dmitry Stogov2021-03-172-0/+43
| |
* | Merge branch 'PHP-7.4' into PHP-8.0Christoph M. Becker2021-03-172-3/+26
|\ \ | |/ | | | | | | * PHP-7.4: Fix #66783: UAF when appending DOMDocument to element
| * Fix #66783: UAF when appending DOMDocument to elementChristoph M. Becker2021-03-172-3/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | According to the DOM standard, elements may only contain element, text, processing instruction and comment nodes[1]. It is also specified that a HierarchyRequestError should be thrown if a document is to be inserted[2]. We follow that standard, and prevent the use-after-free this way. [1] <https://dom.spec.whatwg.org/#node-trees> [2] <https://dom.spec.whatwg.org/#mutation-algorithms> Closes GH-6765.
* | Fixed bug #80847 (CData structs with fields of type struct can't be passed ↵Dmitry Stogov2021-03-173-59/+79
| | | | | | | | as C function argument)
* | Fix refcount inference for typed propertiesNikita Popov2021-03-161-4/+3
| | | | | | | | | | We were not adding RC1/RCN if the MAY_BE_OBJECT came from a class type and there was no other refcounted type in the union.
* | Fix ldap_next_entry() parameter nameMáté Kocsis2021-03-162-4/+7
| |
* | Fix crash in LDAP search functions during argument validationMáté Kocsis2021-03-162-0/+18
| |
* | Add missing skipif sections to ext/dom testsMáté Kocsis2021-03-152-0/+4
| |
* | Merge branch 'PHP-7.4' into PHP-8.0Christoph M. Becker2021-03-151-2/+2
|\ \ | |/ | | | | | | * PHP-7.4: Fix #80817: dba_popen() may cause segfault during RSHUTDOWN
| * Fix #80817: dba_popen() may cause segfault during RSHUTDOWNChristoph M. Becker2021-03-151-2/+2
| | | | | | | | We need to close persistent streams with the proper flag.
* | Merge branch 'PHP-7.4' into PHP-8.0Nikita Popov2021-03-152-0/+16
|\ \ | |/ | | | | | | * PHP-7.4: Fix bug #80866
| * Fix bug #80866Dharman2021-03-152-0/+16
| | | | | | | | Closes GH-6774.
* | Merge branch 'PHP-7.4' into PHP-8.0Nikita Popov2021-03-152-1/+39
|\ \ | |/ | | | | | | * PHP-7.4: Fix bug #80837
| * Fix bug #80837Dharman2021-03-152-1/+39
| | | | | | | | The error needs to be reported on the statement, not the connection.
| * Downgrade security level in tests using TLS < 1.2Nikita Popov2021-03-155-4/+14
| | | | | | | | | | | | | | A few additional tests have been added on master that require lower security level. (cherry picked from commit c2a6395dcbab20549702e56006f7cd389cefebcd)
* | ext/opcache: fix configure output while checking mmap MAP_ANON supportMichael Heimpold2021-03-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Fixed bug #80814 (threaded mod_php won't load on FreeBSD: No space available ↵Dmitry Stogov2021-03-101-2/+2
| | | | | | | | for static Thread Local Storage)
* | Merge branch 'PHP-7.4' into PHP-8.0Christoph M. Becker2021-03-082-0/+86
|\ \ | |/ | | | | | | * PHP-7.4: Fix #51903: simplexml_load_file() doesn't use HTTP headers
| * Fix #51903: simplexml_load_file() doesn't use HTTP headersChristoph M. Becker2021-03-082-0/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Merge branch 'PHP-7.4' into PHP-8.0Christoph M. Becker2021-03-082-1/+42
|\ \ | |/ | | | | | | * PHP-7.4: Fix #80838: HTTP wrapper waits for HTTP 1 response after HTTP 101
| * Fix #80838: HTTP wrapper waits for HTTP 1 response after HTTP 101manuel2021-03-082-1/+42
| | | | | | | | | | | | Don't wait for further responses after a HTTP 101 (Switching Protocols) response Closes GH-6730.
* | Add supports for FreeBSD's PROT_MAX to let mprotect knows X flag can be ↵David Carlier2021-03-051-0/+3
| | | | | | | | | | | | applied in addition. Closes GH-6738.
* | Merge branch 'PHP-7.4' into PHP-8.0Christoph M. Becker2021-03-051-1/+1
|\ \ | |/ | | | | | | * PHP-7.4: Print error code if CreateMutex() fails
| * Print error code if CreateMutex() failsChristoph M. Becker2021-03-051-1/+1
| | | | | | | | | | | | | | | | | | 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.
* | Fix ASAN warning (Zend/zend_string.h:165:2: runtime error: null pointer ↵Dmitry Stogov2021-03-041-1/+5
| | | | | | | | passed as argument 2 of memcpy(), which is declared to never be null)
* | Fix #80825: ZipArchive::isCompressionMethodSupported does not existChristoph M. Becker2021-03-031-1/+1
| | | | | | | | | | `HAVE_METHOD_SUPPORTED` should have been defined after we updated to libzip 1.7.1 months ago.
* | Fix test wrt. server.inc changesChristoph M. Becker2021-03-031-3/+3
| |
* | Merge branch 'PHP-7.4' into PHP-8.0Christoph M. Becker2021-03-032-13/+31
|\ \ | |/ | | | | | | * PHP-7.4: Fix #78719: http wrapper silently ignores long Location headers
| * Fix #78719: http wrapper silently ignores long Location headersChristoph M. Becker2021-03-032-13/+31
| | | | | | | | | | | | | | | | | | | | | | | | 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.