Skip to content

Commit b41ee37

Browse files
author
Martin Köditz
authored
Merge pull request #29 from diegosardina/patch-2
Fixed two wrong statements. Set statement resource to NULL on reset.
2 parents 45ae357 + b498b23 commit b41ee37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ibase_query.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ static void _php_ibase_free_result(zend_resource *rsrc) /* {{{ */
156156
_php_ibase_free_xsqlda(ib_result->out_sqlda);
157157
if (ib_result->stmt_res != NULL) {
158158
zend_list_delete(ib_result->stmt_res);
159-
ib_result->stmt_res == NULL;
159+
ib_result->stmt_res = NULL;
160160
}
161161
efree(ib_result);
162162
}
@@ -175,7 +175,7 @@ static void _php_ibase_free_query(ibase_query *ib_query) /* {{{ */
175175
}
176176
if (ib_query->stmt_res != NULL) {
177177
zend_list_delete(ib_query->stmt_res);
178-
ib_query->stmt_res == NULL;
178+
ib_query->stmt_res = NULL;
179179
}
180180
if (ib_query->in_array) {
181181
efree(ib_query->in_array);

0 commit comments

Comments
 (0)