From: Derick Rethans Date: Mon, 13 Feb 2006 15:53:36 +0000 (+0000) Subject: - Fixed bug #36382 (PDO/PgSQL's getColumnMeta() crashes). X-Git-Tag: php-5.1.3RC1~110 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1a170a3de2b64fb4ec76054040798cadc4383eaf;p=php - Fixed bug #36382 (PDO/PgSQL's getColumnMeta() crashes). --- diff --git a/NEWS b/NEWS index 636bce0ab1..ba7b29cca3 100644 --- a/NEWS +++ b/NEWS @@ -20,7 +20,9 @@ PHP NEWS - Added new mysqli constants for BIT and NEW_DECIMAL field types: MYSQLI_TYPE_NEWDECIMAL and MYSQLI_TYPE_BIT. FR #36007. (Georg) - Added ReflectionClass::newInstanceArgs($args). (Marcus) -- Added imap_savebody() that allows message body to be written to a file. (Mike) +- Added imap_savebody() that allows message body to be written to a file. + (Mike) +- Fixed bug #36382 (PDO/PgSQL's getColumnMeta() crashes). (Derick) - Fixed bug #36359 (splFileObject::fwrite() doesn't write when no data length specified). (Tony) - Fixed bug #36351 (parse_url() does not parse numeric paths properly). (Ilia) diff --git a/ext/pdo_pgsql/pgsql_driver.c b/ext/pdo_pgsql/pgsql_driver.c index c9fe4b174e..3eac6ede84 100644 --- a/ext/pdo_pgsql/pgsql_driver.c +++ b/ext/pdo_pgsql/pgsql_driver.c @@ -670,7 +670,7 @@ static int pdo_pgsql_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_ H->pgoid = -1; dbh->methods = &pgsql_methods; - dbh->alloc_own_columns = 0; + dbh->alloc_own_columns = 1; dbh->max_escaped_char_length = 2; ret = 1;