]> granicus.if.org Git - php/commitdiff
Add comment explaining empty default case
authorGeorge Peter Banyard <girgias@php.net>
Fri, 12 Mar 2021 21:02:15 +0000 (21:02 +0000)
committerGeorge Peter Banyard <girgias@php.net>
Mon, 15 Mar 2021 16:39:40 +0000 (16:39 +0000)
ext/pdo/pdo_dbh.c

index c14188adac0bbe4d277e853dac372056d0297ceb..41ac1e260e878fd40d280ddad8d6369b449a81a3 100644 (file)
@@ -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) {