summaryrefslogtreecommitdiff
path: root/ext
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Boolify pdo_hash_methods()George Peter Banyard2021-03-152-5/+5
| | |
* | | Boolify pdo_stmt_describe_columns()George Peter Banyard2021-03-153-5/+5
| | |
* | | Voidify internal pdo_sqlstate_init_error_table()George Peter Banyard2021-03-153-7/+3
| | | | | | | | | | | | This always returned SUCCESS
* | | Remove php_pdo_str_tolower_dup() functionGeorge Peter Banyard2021-03-151-8/+0
| | |
* | | Change the default error mode of mysqliDharman2021-03-153-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT the new mysqli error reporting default. Explicitly call mysqli_report(MYSQLI_REPORT_OFF) to preserve previous behavior. RFC: https://wiki.php.net/rfc/mysqli_default_errmode Closes GH-6629.
* | | Merge branch 'PHP-8.0'Nikita Popov2021-03-152-0/+16
|\ \ \ | |/ / | | | | | | | | | * PHP-8.0: Fix bug #80866
| * | 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-8.0'Nikita Popov2021-03-152-1/+39
|\ \ \ | |/ / | | | | | | | | | * PHP-8.0: Fix bug #80837
| * | 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)
* | | Assert that stmt is set in PDORowNikita Popov2021-03-151-78/+75
| | |
* | | Use typed properties in ext/mysqliMáté Kocsis2021-03-158-290/+201
| | | | | | | | | | | | Closes GH-6739
* | | Use zend_objects_not_comparable in PDONikita Popov2021-03-152-18/+3
| | |
* | | Add CLEAN sections to mysqli and PDO mysql testsDharman2021-03-1514-17/+88
| | | | | | | | | | | | Closes GH-6756.
* | | Merge branch 'PHP-8.0'Nikita Popov2021-03-151-1/+1
|\ \ \ | |/ / | | | | | | | | | * PHP-8.0: ext/opcache: fix configure output while checking mmap MAP_ANON support
| * | 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.
* | | Deprecate mysqli driver_version propertyDharman2021-03-153-6/+3
| | | | | | | | | | | | | | | The driver version hasn't been updated in 13 years, so this number is essentially meaningless. Check PHP_VERSION_ID instead.
* | | Remove dead mysqli_driver_construct() functionNikita Popov2021-03-151-12/+0
| | | | | | | | | | | | | | | This function was never registered with PHP, and the body is commented out.
* | | Clean up mysqli_driver test casesDharman2021-03-153-171/+170
| | | | | | | | | | | | | | | And remove an unnecessary test case that is already covered by the other two.
* | | Remove redundant macros in mysqli_driver implementationDharman2021-03-151-47/+21
| | | | | | | | | | | | | | | This class doesn't define many properties, and the macros make customization hard.
* | | Remove unused mysqli globalDharman2021-03-152-13/+8
| | | | | | | | | | | | And fix formatting issues.
* | | client_info is a constant and doesn't need a connectionDharman2021-03-153-12/+9
| | | | | | | | | | | | Closes GH-6767.
* | | hash: xxhash: Use canonicalization routine from existing APIAnatol Belski2021-03-131-44/+4
| | | | | | | | | | | | Signed-off-by: Anatol Belski <ab@php.net>
* | | Inheritance cache optimizationDmitry Stogov2021-03-112-3/+7
| | |
* | | Fixed assertion (ext/opcache/zend_persist.c:327: ↵Dmitry Stogov2021-03-101-2/+3
| | | | | | | | | | | | zend_accel_get_type_map_ptr: Assertion `ret > 2' failed)
* | | Merge branch 'PHP-8.0'Dmitry Stogov2021-03-101-2/+2
|\ \ \ | |/ / | | | | | | | | | * PHP-8.0: Fixed bug #80814 (threaded mod_php won't load on FreeBSD: No space available for static Thread Local Storage)
| * | 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)
* | | Use spl_filesystem_object.file_name for SPL_FS_DIR as a cache and prevent ↵Dmitry Stogov2021-03-091-9/+14
| | | | | | | | | | | | multiple file name reconstruction.
* | | Merge branch 'PHP-8.0'Christoph M. Becker2021-03-082-0/+86
|\ \ \ | |/ / | | | | | | | | | * PHP-8.0: Fix #51903: simplexml_load_file() doesn't use HTTP headers
| * | 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-8.0'Christoph M. Becker2021-03-082-1/+42
|\ \ \ | |/ / | | | | | | | | | * PHP-8.0: Fix #80838: HTTP wrapper waits for HTTP 1 response after HTTP 101
| * | 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.
* | | Merge branch 'PHP-8.0'Nikita Popov2021-03-051-0/+3
|\ \ \ | |/ / | | | | | | | | | * PHP-8.0: Add supports for FreeBSD's PROT_MAX to let mprotect knows X flag can be applied in addition.
| * | 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.
* | | Reduce date test threshold furtherNikita Popov2021-03-051-1/+1
| | | | | | | | | | | | Still seeing the occasional spurious failure.
* | | Merge branch 'PHP-8.0'Christoph M. Becker2021-03-051-1/+1
|\ \ \ | |/ / | | | | | | | | | * PHP-8.0: Print error code if CreateMutex() fails
| * | 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.
* | | Reduce threshold in ext/date/tests/bug73837.phptNikita Popov2021-03-041-1/+2
| | | | | | | | | | | | Now that this code is faster, we're seeing many spurious failures.
* | | Update mysqli tests to work with newer MySQL serverMax Semenik2021-03-044-23/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * @@session.old_passwords is present only in 5.6 and 5.7. Newer versions already behave as if they have old_passwords=2. * SET PASSWORD FOR ... = PASSWORD(...) syntax was removed in 8.0. For all affected tests, versions that don't support newer SQL are already explicitly excluded with version checks. Closes GH-6729.
* | | Add mechanism to skip the skipif cacheNikita Popov2021-03-044-0/+4
| | | | | | | | | | | | | | | | | | If the SKIPIF section return nocache, don't cache the result. This is used by tests that perform complex test set in conjunction with skip checks, and need to be evaluated every time.
* | | Fix dynamic func def persist with preloadingNikita Popov2021-03-041-0/+1
| | | | | | | | | | | | | | | If we find an existing serialization of the op_array, of course we also need to actually make use of it...
* | | Merge branch 'PHP-8.0'Dmitry Stogov2021-03-041-1/+5
|\ \ \ | |/ / | | | | | | | | | * PHP-8.0: 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)
| * | 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)
* | | Cache haschildren/getchildren methods of recursive iterators.Dmitry Stogov2021-03-041-9/+26
| | |
* | | Remove duplicated SSL_CTX_set_verify()twosee2021-03-041-1/+0
| | | | | | | | | | | | | | | | | | | | | Duplicated with line 920. Our minimal OpenSSL version is v1.0.1 (See https://github.com/openssl/openssl/blob/OpenSSL_1_0_1-stable/ssl/ssl_lib.c#L2039). Removing it does not affect program behavior. Closes GH-6751.