Skip to content

Commit 2ff4207

Browse files
committed
Merge branch 'PHP-7.4'
* PHP-7.4: Fix #78623: Regression caused by "SP call yields additional empty result set"
2 parents 8f7238e + b142e8a commit 2ff4207

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

ext/pdo_mysql/mysql_statement.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -421,14 +421,14 @@ static int pdo_mysql_stmt_next_rowset(pdo_stmt_t *stmt) /* {{{ */
421421
pdo_mysql_error_stmt(stmt);
422422
PDO_DBG_RETURN(0);
423423
} else {
424-
PDO_DBG_RETURN(pdo_mysql_fill_stmt_from_result(stmt) && stmt->row_count);
424+
PDO_DBG_RETURN(pdo_mysql_fill_stmt_from_result(stmt));
425425
}
426426
#else
427427
if (mysql_next_result(H->server) > 0) {
428428
pdo_mysql_error_stmt(stmt);
429429
PDO_DBG_RETURN(0);
430430
} else {
431-
PDO_DBG_RETURN(pdo_mysql_fill_stmt_from_result(stmt) && stmt->row_count);
431+
PDO_DBG_RETURN(pdo_mysql_fill_stmt_from_result(stmt));
432432
}
433433
#endif
434434
}

ext/pdo_mysql/tests/bug_39858.phpt

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ if ($version < 50000)
1818
die(sprintf("skip Need MySQL Server 5.0.0+, found %d.%02d.%02d (%d)\n",
1919
$matches[1], $matches[2], $matches[3], $version));
2020
?>
21+
--XFAIL--
22+
nextRowset() problem with stored proc & emulation mode & mysqlnd
2123
--FILE--
2224
<?php
2325
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');

ext/pdo_mysql/tests/bug_41997.phpt

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
PDO MySQL Bug #41997 (stored procedure call returning single rowset blocks future queries)
3+
--XFAIL--
4+
nextRowset() problem with stored proc & emulation mode & mysqlnd
35
--SKIPIF--
46
<?php
57
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'skipif.inc');

ext/pdo_mysql/tests/pdo_mysql_stmt_variable_columncount.phpt

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
MySQL Prepared Statements and different column counts
3+
--XFAIL--
4+
nextRowset() problem with stored proc & emulation mode & mysqlnd
35
--SKIPIF--
46
<?php
57
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'skipif.inc');

0 commit comments

Comments
 (0)