diff options
-rw-r--r-- | ext/pdo/pdo_dbh.c | 5 |
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) { |