From: Pierre Joye Date: Thu, 15 May 2014 18:09:49 +0000 (+0200) Subject: used only in the #ifdef 0 X-Git-Tag: POST_PHPNG_MERGE~354 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8a2a9379cff1762f6769b8dbe9b650416226f96b;p=php used only in the #ifdef 0 --- diff --git a/ext/pdo/pdo_dbh.c b/ext/pdo/pdo_dbh.c index 2ff3be7cbb..0cc6ea5cf4 100644 --- a/ext/pdo/pdo_dbh.c +++ b/ext/pdo/pdo_dbh.c @@ -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) {