]> granicus.if.org Git - php/commitdiff
Fixed bug #63258 (seg fault with PDO and dblib using DBSETOPT(H->link, DBQUOTEDIDENT...
authorXinchen Hui <laruence@php.net>
Fri, 12 Oct 2012 02:37:05 +0000 (10:37 +0800)
committerXinchen Hui <laruence@php.net>
Fri, 12 Oct 2012 02:37:05 +0000 (10:37 +0800)
The exists test should has covered this bug

NEWS
ext/pdo_dblib/dblib_driver.c

diff --git a/NEWS b/NEWS
index 02fb131476e71dbb7eb3cb610bb39e89cf59012e..d7f600a8da7f7ada756c91467258ec68e6be35d4 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -60,6 +60,8 @@ PHP                                                                        NEWS
     SHA224, SHA256, SHA384, SHA512). (Mark Jones)
 
 - PDO:
+  . Fixed bug #63258 (seg fault with PDO and dblib using DBSETOPT(H->link,
+    DBQUOTEDIDENT, 1)). (Laruence)
   . Fixed bug #63235 (buffer overflow in use of SQLGetDiagRec).
     (Martin Osvald, Remi)
 
index 77832f952047d8e3614bb46a49f7b7ca56e98d86..baf1dcc670f8c09f7c7268923a6e092d0664893b 100644 (file)
@@ -315,7 +315,7 @@ static int pdo_dblib_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_
        DBSETOPT(H->link, DBTEXTSIZE, "2147483647");
 
        /* allow double quoted indentifiers */
-       DBSETOPT(H->link, DBQUOTEDIDENT, 1);
+       DBSETOPT(H->link, DBQUOTEDIDENT, NULL);
 
        if (vars[3].optval && FAIL == dbuse(H->link, vars[3].optval)) {
                goto cleanup;