1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

odbc: Use true / false instead of 1 / 0 when assigning to bool

Changes done with Coccinelle:

    @@
    bool b;
    @@

    - b = 0
    + b = false

    @@
    bool b;
    @@

    - b = 1
    + b = true
This commit is contained in:
Tim Düsterhus
2025-09-23 22:50:40 +02:00
committed by Tim Düsterhus
parent b12eae465c
commit 10f78cfd96

View File

@@ -2520,7 +2520,7 @@ PHP_FUNCTION(odbc_autocommit)
{
RETCODE rc;
zval *pv_conn;
bool pv_onoff = 0;
bool pv_onoff = false;
bool pv_onoff_is_null = true;
if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|b!", &pv_conn, odbc_connection_ce, &pv_onoff, &pv_onoff_is_null) == FAILURE) {