From: Xinchen Hui Date: Fri, 12 Oct 2012 02:37:05 +0000 (+0800) Subject: Fixed bug #63258 (seg fault with PDO and dblib using DBSETOPT(H->link, DBQUOTEDIDENT... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0c0b5a3543f37dc3dfe7fa55629f2749c0b05294;p=php Fixed bug #63258 (seg fault with PDO and dblib using DBSETOPT(H->link, DBQUOTEDIDENT, 1)) The exists test should has covered this bug --- diff --git a/NEWS b/NEWS index 02fb131476..d7f600a8da 100644 --- 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) diff --git a/ext/pdo_dblib/dblib_driver.c b/ext/pdo_dblib/dblib_driver.c index 77832f9520..baf1dcc670 100644 --- a/ext/pdo_dblib/dblib_driver.c +++ b/ext/pdo_dblib/dblib_driver.c @@ -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;