]> granicus.if.org Git - php/commitdiff
fix #36606 (pg_query_params() changes arguments type to string)
authorAntony Dovgal <tony2001@php.net>
Sun, 5 Mar 2006 13:33:28 +0000 (13:33 +0000)
committerAntony Dovgal <tony2001@php.net>
Sun, 5 Mar 2006 13:33:28 +0000 (13:33 +0000)
ext/pgsql/pgsql.c

index d1233cff8b26be28dfd7569c1614fd99a08a9f2d..2f179b426e83de020c2eaf6d4ce5d148ccd48837 100644 (file)
@@ -257,7 +257,7 @@ ZEND_GET_MODULE(pgsql)
 
 static int le_link, le_plink, le_result, le_lofp, le_string;
 
-ZEND_DECLARE_MODULE_GLOBALS(pgsql);
+ZEND_DECLARE_MODULE_GLOBALS(pgsql)
 
 /* {{{ _php_pgsql_trim_message */
 static char * _php_pgsql_trim_message(const char *message, int *len)
@@ -1257,7 +1257,7 @@ PHP_FUNCTION(pg_query_params)
                        }
 
                        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");
                                _php_pgsql_free_params(params, num_params);