]> 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:02:46 +0000 (03:02 +0000)
committerFelipe Pena <felipe@php.net>
Fri, 1 May 2009 03:02:46 +0000 (03:02 +0000)
ext/odbc/php_odbc.c

index 94a4e596a180a71b7766c407d13eed4a8e3aaf11..dc349bf4137a9d298ddb1a90e6db3cc998b0f045 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);