From 8afd6b254268cc9c5f587d4b599eab4dc997b45b Mon Sep 17 00:00:00 2001 From: KoudelkaB <33930155+KoudelkaB@users.noreply.github.com> Date: Fri, 8 Jan 2021 15:07:04 +0100 Subject: [PATCH] Revert "Throw exception when previous execution result was not properly released in PHP code." This reverts commit 426602a0cf8ba208d58606cb37f353c512f50e64. --- ibase_query.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ibase_query.c b/ibase_query.c index f9c8d9b..d0cce8c 100644 --- a/ibase_query.c +++ b/ibase_query.c @@ -1854,10 +1854,6 @@ PHP_FUNCTION(ibase_execute) _php_ibase_error(); break; } - if (ib_query->result_res->gc.refcount > 1) { - php_printf("ERROR: Query result of '%s' was not released before executing the same query again!\n", ib_query->query); - php_error_docref(NULL, E_ERROR, "Query result of '%s' was not released before executing the same query again!", ib_query->query); /* throw exception*/ - } zend_list_delete(ib_query->result_res); ib_query->result_res = NULL; }