From f89f600d4f9afcde2a335188b2b75b66c7d730d6 Mon Sep 17 00:00:00 2001 From: George Peter Banyard Date: Fri, 12 Mar 2021 21:02:15 +0000 Subject: [PATCH] Add comment explaining empty default case --- ext/pdo/pdo_dbh.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ext/pdo/pdo_dbh.c b/ext/pdo/pdo_dbh.c index c14188adac..41ac1e260e 100644 --- a/ext/pdo/pdo_dbh.c +++ b/ext/pdo/pdo_dbh.c @@ -801,9 +801,8 @@ static bool pdo_dbh_attribute_set(pdo_dbh_t *dbh, zend_long attr, zval *value) / } return true; } - - default: - ; + /* Don't throw a ValueError as the attribute might be a driver specific one */ + default:; } if (!dbh->methods->set_attribute) { -- 2.50.1