diff options
author | Gabriel Caruso <carusogabriel34@gmail.com> | 2018-08-19 01:32:00 -0300 |
---|---|---|
committer | Peter Kokot <peterkokot@gmail.com> | 2018-12-03 01:22:14 +0100 |
commit | cdd8368d6f3f000a2e30a6be9976c5539f10fe85 (patch) | |
tree | 8f680d0c1fb552fdcbdbf3d49427c811fa789bf9 /ext/mysqlnd/mysqlnd_connection.c | |
parent | 6c16f9b69c1951392d5d0ac89d3fbd2b318af118 (diff) | |
download | php-git-cdd8368d6f3f000a2e30a6be9976c5539f10fe85.tar.gz |
Clean up unnecessary ternary expressions and simplify some returns
- Simplify conditions
- Use ZEND_HASH_APPLY_* instead of hard-coded booleans
- Use ZEND_NORMALIZE_BOOL
- Drop sign in favor of ZEND_NORMALIZE_BOOL
Diffstat (limited to 'ext/mysqlnd/mysqlnd_connection.c')
-rw-r--r-- | ext/mysqlnd/mysqlnd_connection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mysqlnd/mysqlnd_connection.c b/ext/mysqlnd/mysqlnd_connection.c index 8745cc4edc..a361361818 100644 --- a/ext/mysqlnd/mysqlnd_connection.c +++ b/ext/mysqlnd/mysqlnd_connection.c @@ -1578,7 +1578,7 @@ MYSQLND_METHOD(mysqlnd_conn_data, change_user)(MYSQLND_CONN_DATA * const conn, DBG_ENTER("mysqlnd_conn_data::change_user"); DBG_INF_FMT("conn=%llu user=%s passwd=%s db=%s silent=%u", - conn->thread_id, user?user:"", passwd?"***":"null", db?db:"", (silent == TRUE)?1:0 ); + conn->thread_id, user?user:"", passwd?"***":"null", db?db:"", silent == TRUE); if (PASS != conn->m->local_tx_start(conn, this_func)) { goto end; |