From caf3e9c3f1c329b496b00501b8baef4dbfc66b4f Mon Sep 17 00:00:00 2001 From: Andrey Hristov Date: Tue, 18 Mar 2008 16:57:31 +0000 Subject: Fixed a bunch of bugs reported in Bug #44352 mysqli_connect_error() false negative for host errors From now on the mysqli object doesn't have that magic properties, like error, which were readable but not visible through isset(), property_exists() and var_dump(). All other ext/mysqli classes were fixed too. Now it will be easier to debug mysqli based applications. --- ext/mysqlnd/mysqlnd_priv.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ext/mysqlnd/mysqlnd_priv.h') diff --git a/ext/mysqlnd/mysqlnd_priv.h b/ext/mysqlnd/mysqlnd_priv.h index 337d4186e6..7ffbc67eaf 100644 --- a/ext/mysqlnd/mysqlnd_priv.h +++ b/ext/mysqlnd/mysqlnd_priv.h @@ -148,9 +148,9 @@ #define SET_CLIENT_ERROR(error_info, a, b, c) \ { \ - error_info.error_no = a; \ - strlcpy(error_info.sqlstate, b, sizeof(error_info.sqlstate)); \ - strlcpy(error_info.error, c, sizeof(error_info.error)); \ + error_info.error_no = (a); \ + strlcpy(error_info.sqlstate, (b), sizeof(error_info.sqlstate)); \ + strlcpy(error_info.error, (c), sizeof(error_info.error)); \ } #define SET_STMT_ERROR(stmt, a, b, c) SET_CLIENT_ERROR(stmt->error_info, a, b, c) -- cgit v1.2.1