From 4b90dd8f06ea677c49fc09e5a698e95f438aa0b0 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Fri, 1 May 2009 03:06:39 +0000 Subject: [PATCH] - MFH: Fixed bug #48038 (odbc_execute changes variables used to form params array) --- NEWS | 2 ++ ext/odbc/php_odbc.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 9d79372b5e..50f845964e 100644 --- a/NEWS +++ b/NEWS @@ -11,6 +11,8 @@ PHP NEWS - Fixed segfault on invalid session.save_path. (Hannes) - Fixed leaks in imap when a mail_criteria is used. (Pierre) +- Fixed bug #48038 (odbc_execute changes variables used to form params array). + (Felipe) - Fixed bug #47997 (stream_copy_to_stream returns 1 on empty streams). (Arnaud) - Fixed bug #47991 (SSL streams fail if error stack contains items). (Mikko) - Fixed bug #47981 (error handler not called regardless). (Hannes) diff --git a/ext/odbc/php_odbc.c b/ext/odbc/php_odbc.c index b769e5b6b8..64d2ffea4a 100644 --- a/ext/odbc/php_odbc.c +++ b/ext/odbc/php_odbc.c @@ -1035,7 +1035,7 @@ PHP_FUNCTION(odbc_execute) } otype = (*tmp)->type; - convert_to_string(*tmp); + convert_to_string_ex(tmp); if (Z_TYPE_PP(tmp) != IS_STRING) { php_error_docref(NULL TSRMLS_CC, E_WARNING,"Error converting parameter"); SQLFreeStmt(result->stmt, SQL_RESET_PARAMS); -- 2.40.0