mirror of
https://github.com/php/php-src.git
synced 2026-03-27 17:52:16 +01:00
- Fixed bug #53323 (pdo_firebird getAttribute() crash)
patch by: preeves at ibphoenix dot com
This commit is contained in:
2
NEWS
2
NEWS
@@ -64,6 +64,8 @@
|
||||
- Fixed the filter extension accepting IPv4 octets with a leading 0 as that
|
||||
belongs to the unsupported "dotted octal" representation. (Gustavo)
|
||||
|
||||
- Fixed bug #53323 (pdo_firebird getAttribute() crash).
|
||||
(preeves at ibphoenix dot com)
|
||||
- Fixed bug #53305 (E_NOTICE when defining a constant starts with
|
||||
__COMPILER_HALT_OFFSET__). (Felipe)
|
||||
- Fixed bug #53297 (gettimeofday implementation in php/win32/time.c can return
|
||||
|
||||
@@ -547,7 +547,7 @@ static int firebird_handle_get_attribute(pdo_dbh_t *dbh, long attr, zval *val TS
|
||||
pdo_firebird_db_handle *H = (pdo_firebird_db_handle *)dbh->driver_data;
|
||||
|
||||
switch (attr) {
|
||||
char tmp[200];
|
||||
char tmp[512];
|
||||
|
||||
case PDO_ATTR_AUTOCOMMIT:
|
||||
ZVAL_LONG(val,dbh->auto_commit);
|
||||
@@ -590,6 +590,10 @@ static int firebird_handle_get_attribute(pdo_dbh_t *dbh, long attr, zval *val TS
|
||||
ZVAL_STRING(val,tmp,1);
|
||||
return 1;
|
||||
}
|
||||
|
||||
case PDO_ATTR_FETCH_TABLE_NAMES:
|
||||
ZVAL_BOOL(val, H->fetch_table_names);
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user