From c5af000e564a33417418442f37ec890f8128c9fb Mon Sep 17 00:00:00 2001 From: Hadis Kakanejadi Fard Date: Wed, 3 May 2017 14:41:19 -0700 Subject: [PATCH] fixed issue #378 --- source/shared/core_stmt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/shared/core_stmt.cpp b/source/shared/core_stmt.cpp index 1a1fe359c..c12f7c99b 100644 --- a/source/shared/core_stmt.cpp +++ b/source/shared/core_stmt.cpp @@ -734,7 +734,7 @@ SQLRETURN core_sqlsrv_execute( sqlsrv_stmt* stmt TSRMLS_DC, const char* sql, int // if the statement executed but failed in a subsequent operation before returning, // we need to cancel the statement and deref the output and stream parameters if ( stmt->send_streams_at_exec ) { - zend_hash_clean( Z_ARRVAL( stmt->output_params )); + finalize_output_parameters( stmt TSRMLS_CC ); zend_hash_clean( Z_ARRVAL( stmt->param_streams )); } if( stmt->executed ) {