com php-src: Fix #78623: Regression caused by "SP call yields additional empty result set": NEWS ext/pdo_mysql/mysql_statement.c
ext/pdo_mysql/tests/bug_39858.phpt ext/pdo _mysql/tests/bug_41997.phpt ext/pdo_mysql/t ests/pdo_mysql_stmt_variable_columncount.phpt
| From: | Christoph Michael Becker | Date: | Mon, 07 Oct 2019 07:15:51 +0000 |
| Subject: | com php-src: Fix #78623: Regression caused by "SP call yields additional empty result set": NEWS ext/pdo_mysql/mysql_statement.c ext/pdo_mysql/tests/bug_39858.phpt ext/pdo _mysql/tests/bug_41997.phpt ext/pdo_mysql/t ests/pdo_mysql_stmt_variable_columncount.phpt |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-108741@lists.php.net to get a copy of this message | ||
Commit: 114c03b9a6122d85ec5ccaafc031ee47e7c26df8
Author: Christoph M. Becker <cmbecker69@gmx.de> Mon, 7 Oct 2019 08:58:11 +0200
Parents: 545412a6cdefbb6d6bddf29a636832873349e10c
Branches: PHP-7.2 PHP-7.3 PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=114c03b9a6122d85ec5ccaafc031ee47e7c26df8
Log:
Fix #78623: Regression caused by "SP call yields additional empty result set"
This reverts commit 41a4379cb45419a376043ca5f8c5a2bca82cea7c.
Bugs:
https://bugs.php.net/78623
Changed paths:
M NEWS
M ext/pdo_mysql/mysql_statement.c
M ext/pdo_mysql/tests/bug_39858.phpt
M ext/pdo_mysql/tests/bug_41997.phpt
M ext/pdo_mysql/tests/pdo_mysql_stmt_variable_columncount.phpt
Diff:
diff --git a/NEWS b/NEWS
index a04f3bf3f8c..62b6d7342f4 100644
--- a/NEWS
+++ b/NEWS
@@ -21,6 +21,10 @@ PHP NEWS
. Fixed bug #76809 (SSL settings aren't respected when persistent connections
are used). (fabiomsouto)
+- PDO_MySQL:
+ . Fixed bug #78623 (Regression caused by "SP call yields additional empty
+ result set"). (cmb)
+
- Session:
. Fixed bug #78624 (session_gc return value for user defined session
handlers). (bshaffer)
diff --git a/ext/pdo_mysql/mysql_statement.c b/ext/pdo_mysql/mysql_statement..c
index 950aa64f074..e230cfbf05a 100644
--- a/ext/pdo_mysql/mysql_statement.c
+++ b/ext/pdo_mysql/mysql_statement.c
@@ -425,14 +425,14 @@ static int pdo_mysql_stmt_next_rowset(pdo_stmt_t *stmt) /* {{{ */
pdo_mysql_error_stmt(stmt);
PDO_DBG_RETURN(0);
} else {
- PDO_DBG_RETURN(pdo_mysql_fill_stmt_from_result(stmt) && stmt->row_count);
+ PDO_DBG_RETURN(pdo_mysql_fill_stmt_from_result(stmt));
}
#else
if (mysql_next_result(H->server) > 0) {
pdo_mysql_error_stmt(stmt);
PDO_DBG_RETURN(0);
} else {
- PDO_DBG_RETURN(pdo_mysql_fill_stmt_from_result(stmt) && stmt->row_count);
+ PDO_DBG_RETURN(pdo_mysql_fill_stmt_from_result(stmt));
}
#endif
}
diff --git a/ext/pdo_mysql/tests/bug_39858.phpt b/ext/pdo_mysql/tests/bug_39858.phpt
index aaf0f3e9f99..896519f8ab0 100644
--- a/ext/pdo_mysql/tests/bug_39858.phpt
+++ b/ext/pdo_mysql/tests/bug_39858.phpt
@@ -18,6 +18,8 @@ if ($version < 50000)
die(sprintf("skip Need MySQL Server 5.0.0+, found %d.%02d.%02d (%d)\n",
$matches[0], $matches[1], $matches[2], $version));
?>
+--XFAIL--
+nextRowset() problem with stored proc & emulation mode & mysqlnd
--FILE--
<?php
require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
diff --git a/ext/pdo_mysql/tests/bug_41997.phpt b/ext/pdo_mysql/tests/bug_41997.phpt
index 69ba9e7c4cf..f001eec7d03 100644
--- a/ext/pdo_mysql/tests/bug_41997.phpt
+++ b/ext/pdo_mysql/tests/bug_41997.phpt
@@ -1,5 +1,7 @@
--TEST--
PDO MySQL Bug #41997 (stored procedure call returning single rowset blocks future queries)
+--XFAIL--
+nextRowset() problem with stored proc & emulation mode & mysqlnd
--SKIPIF--
<?php
require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'skipif.inc');
diff --git a/ext/pdo_mysql/tests/pdo_mysql_stmt_variable_columncount.phpt
b/ext/pdo_mysql/tests/pdo_mysql_stmt_variable_columncount.phpt
index 94544e2120a..e58d4a65782 100644
--- a/ext/pdo_mysql/tests/pdo_mysql_stmt_variable_columncount.phpt
+++ b/ext/pdo_mysql/tests/pdo_mysql_stmt_variable_columncount.phpt
@@ -1,5 +1,7 @@
--TEST--
MySQL Prepared Statements and different column counts
+--XFAIL--
+nextRowset() problem with stored proc & emulation mode & mysqlnd
--SKIPIF--
<?php
require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'skipif.inc');