summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/oci8/oci8.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/oci8/oci8.c b/ext/oci8/oci8.c
index a39ac8ee14..3ce3b4939f 100644
--- a/ext/oci8/oci8.c
+++ b/ext/oci8/oci8.c
@@ -829,6 +829,8 @@ _oci_define_hash_dtor(void *data)
static void
_oci_desc_flush_hash_dtor(void *data)
{
+ TSRMLS_FETCH();
+
oci_descriptor *descr = *((oci_descriptor **)data);
if (descr->buffering == 2 && (descr->type == OCI_DTYPE_LOB || descr->type == OCI_DTYPE_FILE)) {
oci_lob_flush(descr,OCI_LOB_BUFFER_FREE TSRMLS_CC);