andrey Thu Aug 28 17:06:45 2003 EDT Modified files: /php-src/ext/pgsql pgsql.c Log: this is the right parameter Index: php-src/ext/pgsql/pgsql.c diff -u php-src/ext/pgsql/pgsql.c:1.292 php-src/ext/pgsql/pgsql.c:1.293 --- php-src/ext/pgsql/pgsql.c:1.292 Thu Aug 28 17:00:22 2003 +++ php-src/ext/pgsql/pgsql.c Thu Aug 28 17:06:44 2003 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: pgsql.c,v 1.292 2003/08/28 21:00:22 andrey Exp $ */ +/* $Id: pgsql.c,v 1.293 2003/08/28 21:06:44 andrey Exp $ */ #include <stdlib.h> @@ -2147,7 +2147,7 @@ RETURN_FALSE; } if (Z_LVAL_PP(z_len) < 0) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Buffer size must be larger than 0, but %d was specified", Z_STRLEN_PP(str)); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Buffer size must be larger than 0, but %ld was specified", Z_LVAL_PP(z_len)); RETURN_FALSE; } len = Z_LVAL_PP(z_len);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php