summaryrefslogtreecommitdiff
path: root/ext/pdo_firebird
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2010-11-16 21:02:14 (GMT)
committerFelipe Pena <felipe@php.net>2010-11-16 21:02:14 (GMT)
commitf774e7dbedadf93c17f5ef3ea24e6e01bb1b5e7d (patch)
tree4f48506ac052ca79dc78c07630303eca4bbf6bac /ext/pdo_firebird
parent1cf06684f5970a22cc7fef76bca0c76d64642139 (diff)
downloadphp-f774e7dbedadf93c17f5ef3ea24e6e01bb1b5e7d.tar.gz
- Fixed bug #53323 (pdo_firebird getAttribute() crash)
patch by: preeves at ibphoenix dot com
Diffstat (limited to 'ext/pdo_firebird')
-rw-r--r--ext/pdo_firebird/firebird_driver.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/pdo_firebird/firebird_driver.c b/ext/pdo_firebird/firebird_driver.c
index dc2f4e7..2492667 100644
--- a/ext/pdo_firebird/firebird_driver.c
+++ b/ext/pdo_firebird/firebird_driver.c
@@ -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;
}