Skip to content

Commit

Permalink
Fix #78623: Regression caused by "SP call yields additional empty res…
Browse files Browse the repository at this point in the history
…ult set"

This reverts commit 41a4379.
  • Loading branch information
cmb69 committed Oct 7, 2019
1 parent 545412a commit 114c03b
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions ext/pdo_mysql/mysql_statement.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 2 additions & 0 deletions ext/pdo_mysql/tests/bug_39858.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 2 additions & 0 deletions ext/pdo_mysql/tests/bug_41997.phpt
Original file line number Diff line number Diff line change
@@ -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');
Expand Down
2 changes: 2 additions & 0 deletions ext/pdo_mysql/tests/pdo_mysql_stmt_variable_columncount.phpt
Original file line number Diff line number Diff line change
@@ -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');
Expand Down

0 comments on commit 114c03b

Please sign in to comment.