summaryrefslogtreecommitdiff
path: root/ext/pdo_firebird
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2008-07-13 10:55:50 (GMT)
committerAntony Dovgal <tony2001@php.net>2008-07-13 10:55:50 (GMT)
commit0cd1f90e29dd3f76c0a82a7d358a58ace2070f95 (patch)
treec0a1e7c59d19ba093355ce6db7d36a2407669e76 /ext/pdo_firebird
parent8793440eeee5f2aa73e2d0be03421eaa9af2be70 (diff)
downloadphp-0cd1f90e29dd3f76c0a82a7d358a58ace2070f95.tar.gz
blind fix for a segfault in ext/pdo_firebird/tests/bug_38253.phpt
Diffstat (limited to 'ext/pdo_firebird')
-rw-r--r--ext/pdo_firebird/firebird_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pdo_firebird/firebird_driver.c b/ext/pdo_firebird/firebird_driver.c
index 7c6d199..dd269a8 100644
--- a/ext/pdo_firebird/firebird_driver.c
+++ b/ext/pdo_firebird/firebird_driver.c
@@ -608,7 +608,7 @@ static int pdo_firebird_fetch_error_func(pdo_dbh_t *dbh, pdo_stmt_t *stmt, zval
strcpy(&buf[i++], " ");
}
add_next_index_string(info, buf, 1);
- } else {
+ } else if (H->last_app_error) {
add_next_index_long(info, -999);
add_next_index_string(info, const_cast(H->last_app_error),1);
}