Skip to content

Commit 7a0a740

Browse files
author
Martin Köditz
committed
Bugfix of issue #40. Test 004.phpt now working.
1 parent ba8e63b commit 7a0a740

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

ibase_query.c

+7
Original file line numberDiff line numberDiff line change
@@ -1811,6 +1811,13 @@ PHP_FUNCTION(ibase_free_result)
18111811

18121812
ib_result = (ibase_result *)zend_fetch_resource_ex(result_arg, LE_RESULT, le_result);
18131813
zend_list_delete(Z_RES_P(result_arg));
1814+
1815+
/*
1816+
* Bugfix of issue #40
1817+
* Reset pointer after freeing to NULL
1818+
*/
1819+
Z_RES_P(result_arg)->ptr = NULL;
1820+
18141821
RETURN_TRUE;
18151822
}
18161823
/* }}} */

tests/004.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
InterBase: BLOB test
33
--SKIPIF--
4-
<?php die("skip: Broken test (Disabled until issue 40 is fixed)"); include("skipif.inc"); ?>
4+
<?php include("skipif.inc"); ?>
55
--FILE--
66
<?php
77

0 commit comments

Comments
 (0)