Skip to content

Commit 11fc863

Browse files
authored
PHP 8.1 Compatibility Fix mysqlnd_error_info_init
Source: php/php-src@7088cff
1 parent 214e0b1 commit 11fc863

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

xmysqlnd/xmysqlnd_session.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -776,9 +776,7 @@ xmysqlnd_session_data::xmysqlnd_session_data(
776776
if (error_info) {
777777
error_info = mysqlnd_error_info? mysqlnd_error_info : &error_info_impl;
778778
} else {
779-
if (FAIL == mysqlnd_error_info_init(&error_info_impl, persistent)) {
780-
throw std::runtime_error("mysqlnd_error_info_init failed");
781-
}
779+
mysqlnd_error_info_init(&error_info_impl, persistent));
782780
error_info = &error_info_impl;
783781
}
784782

0 commit comments

Comments
 (0)