tony2001 Sun Mar 5 13:33:28 2006 UTC Modified files: /php-src/ext/pgsql pgsql.c Log: fix #36606 (pg_query_params() changes arguments type to string) http://cvs.php.net/viewcvs.cgi/php-src/ext/pgsql/pgsql.c?r1=1.341&r2=1.342&diff_format=u Index: php-src/ext/pgsql/pgsql.c diff -u php-src/ext/pgsql/pgsql.c:1.341 php-src/ext/pgsql/pgsql.c:1.342 --- php-src/ext/pgsql/pgsql.c:1.341 Sun Feb 19 04:29:41 2006 +++ php-src/ext/pgsql/pgsql.c Sun Mar 5 13:33:28 2006 @@ -20,7 +20,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: pgsql.c,v 1.341 2006/02/19 04:29:41 andi Exp $ */ +/* $Id: pgsql.c,v 1.342 2006/03/05 13:33:28 tony2001 Exp $ */ #include <stdlib.h> @@ -257,7 +257,7 @@ 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 @@ } 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);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php