mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
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
This commit is contained in:
parent
6c16f9b69c
commit
cdd8368d6f
26 changed files with 39 additions and 63 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue