]> granicus.if.org Git - php/commitdiff
used only in the #ifdef 0
authorPierre Joye <pierre.php@gmail.com>
Thu, 15 May 2014 18:09:49 +0000 (20:09 +0200)
committerPierre Joye <pierre.php@gmail.com>
Thu, 15 May 2014 18:09:49 +0000 (20:09 +0200)
ext/pdo/pdo_dbh.c

index 2ff3be7cbb0bee4c4016b5eb33ef4b29705bd367..0cc6ea5cf4ec43245c08263c0ede3e0a198bf953 100644 (file)
@@ -269,7 +269,6 @@ static PHP_METHOD(PDO, dbh_constructor)
 
        /* is this supposed to be a persistent connection ? */
        if (options) {
-               zval *v;
                int plen = 0;
                char *hashkey = NULL;
                zend_resource *le;
@@ -277,6 +276,8 @@ static PHP_METHOD(PDO, dbh_constructor)
 
                //?? let's delay the persistent supports later
 #if 0
+               zval *v;
+
                if ((v = zend_hash_index_find(Z_ARRVAL_P(options), PDO_ATTR_PERSISTENT)) != NULL) {
                        if (Z_TYPE_P(v) == IS_STRING &&
                                !is_numeric_string(Z_STRVAL_P(v), Z_STRLEN_P(v), NULL, NULL, 0) && Z_STRLEN_P(v) > 0) {