com php-src: used only in the #ifdef 0: ext/pdo/pdo_dbh.c
| From: | Pierre Joye | Date: | Thu, 15 May 2014 18:09:49 +0000 |
| Subject: | com php-src: used only in the #ifdef 0: ext/pdo/pdo_dbh.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-78386@lists.php.net to get a copy of this message | ||
Commit: 8a2a9379cff1762f6769b8dbe9b650416226f96b
Author: Pierre Joye <pierre.php@gmail.com> Thu, 15 May 2014 20:09:49 +0200
Parents: f87d5001fc8bebb6dc3a4789697107c1a1e6d336
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=8a2a9379cff1762f6769b8dbe9b650416226f96b
Log:
used only in the #ifdef 0
Changed paths:
M ext/pdo/pdo_dbh.c
Diff:
diff --git a/ext/pdo/pdo_dbh.c b/ext/pdo/pdo_dbh.c
index 2ff3be7..0cc6ea5 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) {