summaryrefslogtreecommitdiff
path: root/ext/sybase_ct
diff options
context:
space:
mode:
authorTimm Friebe <thekid@php.net>2004-05-21 20:29:38 +0000
committerTimm Friebe <thekid@php.net>2004-05-21 20:29:38 +0000
commit8eac91345b8e774f0ec2120b882bdab2f5e98e25 (patch)
tree64d785844bfd1b2dd3d068d4bf6a3add2deb5f00 /ext/sybase_ct
parentb20be6a27b5a1701f7c0db09657c2fd216a41b3c (diff)
downloadphp-git-8eac91345b8e774f0ec2120b882bdab2f5e98e25.tar.gz
- Fixed bug #28354
Diffstat (limited to 'ext/sybase_ct')
-rw-r--r--ext/sybase_ct/php_sybase_ct.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/sybase_ct/php_sybase_ct.c b/ext/sybase_ct/php_sybase_ct.c
index 90d2dc8aad..3d41d8b0af 100644
--- a/ext/sybase_ct/php_sybase_ct.c
+++ b/ext/sybase_ct/php_sybase_ct.c
@@ -1576,7 +1576,6 @@ PHP_FUNCTION(sybase_unbuffered_query)
php_sybase_query(INTERNAL_FUNCTION_PARAM_PASSTHRU, 1);
}
-
/* {{{ proto bool sybase_free_result(int result)
Free result memory */
PHP_FUNCTION(sybase_free_result)
@@ -1595,7 +1594,7 @@ PHP_FUNCTION(sybase_free_result)
ZEND_FETCH_RESOURCE(result, sybase_result *, sybase_result_index, -1, "Sybase result", le_result);
/* Did we fetch up until the end? */
- if (result->last_retcode != CS_END_DATA) {
+ if (result->last_retcode != CS_END_DATA && result->last_retcode != CS_END_RESULTS) {
/* php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase: Cancelling the rest of the results\n"); */
ct_cancel(NULL, result->sybase_ptr->cmd, CS_CANCEL_ALL);
php_sybase_finish_results(result);