From: George Peter Banyard Date: Fri, 12 Mar 2021 21:02:15 +0000 (+0000) Subject: Add comment explaining empty default case X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f89f600d4f9afcde2a335188b2b75b66c7d730d6;p=php Add comment explaining empty default case --- 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) {