php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #61183
Patch firebird_bind_blob revision 2016-09-16 17:22 UTC by cmb@php.net
Patch Blob_Bind_Fix revision 2012-10-25 02:31 UTC by james at kenjim dot com

Patch firebird_bind_blob for PDO Firebird Bug #61183

Patch version 2016-09-16 17:22 UTC

Return to Bug #61183 | Download this patch
Patch Revisions:

Developer: cmb@php.net

 ext/pdo_firebird/firebird_statement.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/ext/pdo_firebird/firebird_statement.c b/ext/pdo_firebird/firebird_statement.c
index d1f1012..445e6c9 100644
--- a/ext/pdo_firebird/firebird_statement.c
+++ b/ext/pdo_firebird/firebird_statement.c
@@ -422,8 +422,6 @@ static int firebird_bind_blob(pdo_stmt_t *stmt, ISC_QUAD *blob_id, zval *param T
 		return 0;
 	}
 
-	SEPARATE_ZVAL(&param);
-
 	convert_to_string_ex(&param);
 	
 	for (rem_cnt = Z_STRLEN_P(param); rem_cnt > 0; rem_cnt -= chunk_size)  {
@@ -438,8 +436,6 @@ static int firebird_bind_blob(pdo_stmt_t *stmt, ISC_QUAD *blob_id, zval *param T
 		put_cnt += chunk_size;
 	}
 	
-	zval_dtor(param);
-
 	if (isc_close_blob(H->isc_status, &h)) {
 		RECORD_ERROR(stmt);
 		return 0;
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 21:01:27 2024 UTC