mirror of
https://github.com/php/php-src.git
synced 2026-04-19 05:51:02 +02:00
MFH: fix #35391 (pdo_mysql::exec does not return number of affected rows)
This commit is contained in:
2
NEWS
2
NEWS
@@ -5,6 +5,8 @@ PHP NEWS
|
||||
- Added an additional field $frame['object'] to the result array of
|
||||
debug_backtrace() that contains a reference to the respective object when the
|
||||
frame was called from an object. (Sebastian)
|
||||
- Fixed bug #35391 (pdo_mysql::exec does not return number of affected rows).
|
||||
(Tony)
|
||||
- Fixed bug #35360 (exceptions in interactive mode (php -a) may cause crash).
|
||||
(Dmitry)
|
||||
- Fixed bug #35358 (Incorrect error messages for PDO class constants). (Ilia)
|
||||
|
||||
@@ -244,7 +244,7 @@ static long mysql_handle_doer(pdo_dbh_t *dbh, const char *sql, long sql_len TSRM
|
||||
return -1;
|
||||
} else {
|
||||
my_ulonglong c = mysql_affected_rows(H->server);
|
||||
if (c != (my_ulonglong) -1) {
|
||||
if (c == (my_ulonglong) -1) {
|
||||
pdo_mysql_error(dbh);
|
||||
return (H->einfo.errcode ? -1 : 0);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user