]> granicus.if.org Git - php/commitdiff
- MFH: Fixed bug #48038 (odbc_execute changes variables used to form params array)
authorFelipe Pena <felipe@php.net>
Fri, 1 May 2009 03:06:39 +0000 (03:06 +0000)
committerFelipe Pena <felipe@php.net>
Fri, 1 May 2009 03:06:39 +0000 (03:06 +0000)
NEWS
ext/odbc/php_odbc.c

diff --git a/NEWS b/NEWS
index 9d79372b5e771f61d3b946d5fce325536c7d4a5d..50f845964e08f0df206ebad83347b40076dc3e5b 100644 (file)
--- 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)
index b769e5b6b87f4fc127185bd1713356dddcd0245d..64d2ffea4ab461d944448edeae0f55f3b9ea9069 100644 (file)
@@ -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);