Permalink
Browse files

Fixed bug #63258 (seg fault with PDO and dblib using DBSETOPT(H->link…

…, DBQUOTEDIDENT, 1))

The exists test should has covered this bug
  • Loading branch information...
laruence committed Oct 12, 2012
1 parent 07ea38b commit 0c0b5a3543f37dc3dfe7fa55629f2749c0b05294
Showing with 3 additions and 1 deletion.
  1. +2 −0 NEWS
  2. +1 −1 ext/pdo_dblib/dblib_driver.c
View
2 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)
@@ -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;

0 comments on commit 0c0b5a3

Please sign in to comment.