Skip to content

Commit 4cded0c

Browse files
committed
Fix 'label followed by a declaration is a C23 extension'
1 parent d31d19e commit 4cded0c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ext/pdo_sqlite/sqlite_driver.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -302,20 +302,20 @@ static bool sqlite_handle_rollback(pdo_dbh_t *dbh)
302302
static int pdo_sqlite_get_attribute(pdo_dbh_t *dbh, zend_long attr, zval *return_value)
303303
{
304304
pdo_sqlite_db_handle *H = (pdo_sqlite_db_handle *)dbh->driver_data;
305+
zend_long transaction_mode;
305306

306307
switch (attr) {
307308
case PDO_ATTR_CLIENT_VERSION:
308309
case PDO_ATTR_SERVER_VERSION:
309310
ZVAL_STRING(return_value, (char *)sqlite3_libversion());
310311
break;
311312
case PDO_SQLITE_ATTR_TRANSACTION_MODE:
312-
zend_long mode;
313313
if (H->transaction_mode == 0) {
314-
mode = PDO_SQLITE_ATTR_TRANSACTION_MODE_DEFERRED;
314+
transaction_mode = PDO_SQLITE_ATTR_TRANSACTION_MODE_DEFERRED;
315315
} else {
316-
mode = H->transaction_mode;
316+
transaction_mode = H->transaction_mode;
317317
}
318-
ZVAL_LONG(return_value, mode);
318+
ZVAL_LONG(return_value, transaction_mode);
319319
break;
320320

321321
default:

0 commit comments

Comments
 (0)