with ATTR_EMULATE_PREPARES = false, don't ignore deadlock errors - #5937
with ATTR_EMULATE_PREPARES = false, don't ignore deadlock errors#5937SjonHortensius wants to merge 2 commits into
Conversation
4e0f9e4 to
6a5f851
Compare
6addcb2 to
d7027cb
Compare
|
To fix the compile error, a forward declaration of ext/pdo_mysql/php_pdo_mysql_int.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/ext/pdo_mysql/php_pdo_mysql_int.h b/ext/pdo_mysql/php_pdo_mysql_int.h
index cfaf9fe1cf..b206333248 100644
--- a/ext/pdo_mysql/php_pdo_mysql_int.h
+++ b/ext/pdo_mysql/php_pdo_mysql_int.h
@@ -150,6 +150,7 @@ typedef struct {
extern const pdo_driver_t pdo_mysql_driver;
extern int _pdo_mysql_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, const char *file, int line);
+extern int _pdo_mysql_stmt_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, const char *file, int line);
#define pdo_mysql_error(s) _pdo_mysql_error(s, NULL, __FILE__, __LINE__)
#define pdo_mysql_error_stmt(s) _pdo_mysql_error(stmt->dbh, stmt, __FILE__, __LINE__)
#define pdo_mysql_error_stmt_emulate_false(s) _pdo_mysql_stmt_error(stmt->dbh, stmt, __FILE__, __LINE__)
I can confirm that the PR would fix #77163 then. However, several tests are failing, and at least some of these indicate that this PR is not quite correct. |
365a495 to
94786ed
Compare
|
@houxiaoxian as you can see a couple of tests fail because of this change:
someone will need to fix these to get this PR accepted. If you are going to refactor your fix, would you please consider re-integrating your changes into |
|
OK, I'll try it, thanks.@SjonHortensius |
|
pdo_mysql.zip |
94786ed to
efca656
Compare
|
the new patch just modify pdo_statement.c. |
|
all the files changed before should return to the original. |
This partially reverts commit efca656.
thanks, that looks a lot cleaner 👍 I do however see a few segmentation faults in the tests that need to be fixed |
the test error is same to the last test. I want to know whether this will passed with No changes. Can we try it. |
|
@houxiaoxian you can see the tests for the same branch without modifications here: https://travis-ci.org/github/php/php-src/builds/722772381 - they all seem to pass fine |
|
suspended in favor of #6203 |
I have tested this patch and can confirm it also fixes bug#77163