summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Peter Banyard <girgias@php.net>2021-03-12 21:02:15 +0000
committerGeorge Peter Banyard <girgias@php.net>2021-03-15 16:39:40 +0000
commitf89f600d4f9afcde2a335188b2b75b66c7d730d6 (patch)
tree1a07fa4456020543ea7ee4c2038cdef828e34bcc
parent6cc0d7c0ec0d6a09e1197e00b800fa3e1d8bed7b (diff)
downloadphp-git-f89f600d4f9afcde2a335188b2b75b66c7d730d6.tar.gz
Add comment explaining empty default case
-rw-r--r--ext/pdo/pdo_dbh.c5
1 files 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) {