diff options
author | Lars Westermann <lwe@php.net> | 2007-11-15 00:25:37 +0000 |
---|---|---|
committer | Lars Westermann <lwe@php.net> | 2007-11-15 00:25:37 +0000 |
commit | 8ff1923fb5adb3ef9d44d215c0ae1dfdb5283a17 (patch) | |
tree | 66a109d84ae19ee5c5186fd58f790ec46ef753a9 /ext/pdo_firebird/firebird_statement.c | |
parent | 9d4daba92977dabb940c187b7a8fd2051eed3eae (diff) | |
download | php-git-8ff1923fb5adb3ef9d44d215c0ae1dfdb5283a17.tar.gz |
- Fixed bug #43244 (firebird: closeCursor w/o returned data kills process)
Diffstat (limited to 'ext/pdo_firebird/firebird_statement.c')
-rw-r--r-- | ext/pdo_firebird/firebird_statement.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pdo_firebird/firebird_statement.c b/ext/pdo_firebird/firebird_statement.c index 2b44f87a03..d9e9901dd4 100644 --- a/ext/pdo_firebird/firebird_statement.c +++ b/ext/pdo_firebird/firebird_statement.c @@ -630,7 +630,7 @@ static int firebird_stmt_cursor_closer(pdo_stmt_t *stmt TSRMLS_DC) /* {{{ */ pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data; /* close the statement handle */ - if (isc_dsql_free_statement(S->H->isc_status, &S->stmt, DSQL_close)) { + if ((*S->name || S->cursor_open) && isc_dsql_free_statement(H->isc_status, &S->stmt, DSQL_close)) { RECORD_ERROR(stmt); return 0; } |