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

index b3ffd23638d04b99a8209df73229dd89a04a39a8..eafa54838694d6310b093d94123611df25337610 100644 (file)
@@ -1274,7 +1274,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);