83738281 | 30-Oct-2020 |
Nikita Popov |
Fix SSA integrity violation for type inference in dead code The foreach body can never be executed and thus may contain empty types. We should still uphold our SSA integrity invariants i
Fix SSA integrity violation for type inference in dead code The foreach body can never be executed and thus may contain empty types. We should still uphold our SSA integrity invariants in that case.
show more ...
|
0427dcb9 | 30-Oct-2020 |
Christoph M. Becker |
Fix bug79177.phpt wrt. JIT JIT ignores that the `zend_write` callback is overwritten, so we define our own callback and caller. We also fix the "inconsistent DLL binding" warnin
Fix bug79177.phpt wrt. JIT JIT ignores that the `zend_write` callback is overwritten, so we define our own callback and caller. We also fix the "inconsistent DLL binding" warnings on Windows, by introducing `PHP_ZEND_TEST_API`. Closes GH-6391.
show more ...
|
b5481def | 17-Sep-2020 |
Dharman |
Fix bug #72413: Segfault with get_result and PS cursors We cannot simply switch to use_result here, because the fetch_row methods in get_result mode and in use_result/store_result mode
Fix bug #72413: Segfault with get_result and PS cursors We cannot simply switch to use_result here, because the fetch_row methods in get_result mode and in use_result/store_result mode are different: In one case it accepts a statement, in the other a return value zval. Thus, doing a switch to use_result results in a segfault when trying to fetch a row. Actually supporting get_result with cursors would require adding cursor support in mysqlnd_result, not just mysqlnd_ps. That would be a significant amount of effort and, given the age of the issue, does not appear to be particularly likely to happen soon. As such, we simply generate an error when using get_result() with cursors, which is much better than causing a segfault. Instead, parameter binding needs to be used.
show more ...
|
0044a81f | 29-Oct-2020 |
Nikita Popov |
Handle errors during PDO row fetch The EOF flag also gets set on error, so we always end up ignoring errors here. However, we should only check errors for unbuffered results. Fo
Handle errors during PDO row fetch The EOF flag also gets set on error, so we always end up ignoring errors here. However, we should only check errors for unbuffered results. For buffered results, this function is guaranteed not to error, and querying the errno may return an unrelated error.
show more ...
|
dd97cb16 | 29-Oct-2020 |
Christoph M. Becker |
Merge branch 'PHP-7.3' into PHP-7.4 * PHP-7.3: Fix format specifier
|
ee3227af | 29-Oct-2020 |
Christoph M. Becker |
Fix format specifier In this function, `i` is of type `size_t`. |
78b44dde | 29-Oct-2020 |
Nikita Popov |
Report gone away error in one more place |
bd6850a2 | 29-Oct-2020 |
Christoph M. Becker |
[ci skip] Fix NEWS order |
133ac015 | 29-Oct-2020 |
Christoph M. Becker |
Merge branch 'PHP-7.3' into PHP-7.4 * PHP-7.3: Fix #44618: Fetching may rely on uninitialized data
|
c21e901b | 29-Oct-2020 |
Christoph M. Becker |
Fix #44618: Fetching may rely on uninitialized data Unless `SQLGetData()` returns `SQL_SUCCESS` or `SQL_SUCCESS_WITH_INFO`, the `StrLen_or_IndPtr` output argument is not guaranteed to be
Fix #44618: Fetching may rely on uninitialized data Unless `SQLGetData()` returns `SQL_SUCCESS` or `SQL_SUCCESS_WITH_INFO`, the `StrLen_or_IndPtr` output argument is not guaranteed to be properly set. Thus we handle retrieval failure other than `SQL_ERROR` by yielding `false` for those column values and raising a warning. Closes GH-6281.
show more ...
|
24537a73 | 29-Oct-2020 |
Nikita Popov |
Retain QUIT_SEND connection state If the server goes away while reading a packet, don't go back into the READY state. This will just cause broken pipe errors down the line. |
a66d73db | 28-Oct-2020 |
Nikita Popov |
Fixed bug #65825 Set error_info when we fail to read a packet, instead of throwing a warning. Additionally we also need to populate the right error_info in rowp_read -- we'll later t
Fixed bug #65825 Set error_info when we fail to read a packet, instead of throwing a warning. Additionally we also need to populate the right error_info in rowp_read -- we'll later take the error from the packet, not the connection. No test case, as this is hard to reliably test. I'm using the test case from: https://github.com/php/php-src/pull/2131#issuecomment-538374838
show more ...
|
f547412c | 28-Oct-2020 |
Christoph M. Becker |
Fix #79177: FFI doesn't handle well PHP exceptions within callback We have to error on unhandled exceptions in FFI callbacks, to avoid passing back undefined values. This has be
Fix #79177: FFI doesn't handle well PHP exceptions within callback We have to error on unhandled exceptions in FFI callbacks, to avoid passing back undefined values. This has been discussed and agreed upon in a previous PR[1]. [1] <https://github.com/php/php-src/pull/5120> Closes GH-6366.
show more ...
|
68dcaa29 | 28-Oct-2020 |
Nikita Popov |
Fixed bug #66528 Report errors in commit, rollback and autocommit handlers. |
68f80be9 | 28-Oct-2020 |
Dmitry Stogov |
Fixed run-time binding of preloaded dynamically declared function |
990bb348 | 17-Sep-2020 |
Dharman |
Handle mysqli errors in more cases Report errors autocommit, commit, rollback and mysqli_stmt_attr_set. Additionally, copy the error from conn to stmt when preparing fails, so t
Handle mysqli errors in more cases Report errors autocommit, commit, rollback and mysqli_stmt_attr_set. Additionally, copy the error from conn to stmt when preparing fails, so these errors are also handled by mysqli_stmt_prepare. Closes GH-6157.
show more ...
|
fe55fe1f | 28-Oct-2020 |
Nikita Popov |
Sync test with master Sync ext/mysqli/tests/mysqli_report.phpt with PHP-8.0/master, as the current difference in indentation makes it hard to merge. |
b03776ad | 20-Sep-2020 |
Dharman |
Fix bug #79375 Make sure deadlock errors are properly propagated and reports in a number of places in mysqli and PDO MySQL. This also fixes a memory and a segfault that can occu
Fix bug #79375 Make sure deadlock errors are properly propagated and reports in a number of places in mysqli and PDO MySQL. This also fixes a memory and a segfault that can occur under these conditions.
show more ...
|
9353f11b | 26-Oct-2020 |
Nikita Popov |
Merge branch 'PHP-7.3' into PHP-7.4 * PHP-7.3: Deny cloning of fileinfo objects
|
7817fc07 | 26-Oct-2020 |
Nikita Popov |
Deny cloning of fileinfo objects Using a cloned finfo object will crash. |
be6d72b3 | 20-Oct-2020 |
Christoph M. Becker |
Revert "Fix out-of-bounds write" This reverts commit bf6873a18e3b6b00f82a645c0893a281ae8eadb8. CVE-2020-26159 is bogus; the "bug" was apparently a false positive reported by Cov
Revert "Fix out-of-bounds write" This reverts commit bf6873a18e3b6b00f82a645c0893a281ae8eadb8. CVE-2020-26159 is bogus; the "bug" was apparently a false positive reported by Coverity, and the "fix" apparently wrong, see <https://github.com/kkos/oniguruma/issues/221>. Closes GH-6357.
show more ...
|
7bc1c0cc | 26-Oct-2020 |
Christoph M. Becker |
Merge branch 'PHP-7.3' into PHP-7.4 * PHP-7.3: Fix #80268: loadHTML() truncates at NUL bytes
|
6d2bc725 | 23-Oct-2020 |
Christoph M. Becker |
Fix #80268: loadHTML() truncates at NUL bytes libxml2 has no particular issues parsing HTML strings with NUL bytes; these just cause truncation of the current text content, but parsing
Fix #80268: loadHTML() truncates at NUL bytes libxml2 has no particular issues parsing HTML strings with NUL bytes; these just cause truncation of the current text content, but parsing continues generally. Since `::loadHTMLFile()` already supports NUL bytes, `::loadHTML()` should as well. Note that this is different from XML, which does not allow any NUL bytes. Closes GH-6368.
show more ...
|
31aca855 | 26-Oct-2020 |
Nikita Popov |
Merge branch 'PHP-7.3' into PHP-7.4 * PHP-7.3: Declare may_retry_reparse_point on windows only
|
824cbc27 | 26-Oct-2020 |
Nikita Popov |
Declare may_retry_reparse_point on windows only |