summaryrefslogtreecommitdiff
path: root/ext/pgsql
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2003-08-28 21:06:44 +0000
committerAndrey Hristov <andrey@php.net>2003-08-28 21:06:44 +0000
commit189e2d8862f780afdafad3f7d29553d6d77bb7a9 (patch)
tree1e6f5153b878f84232df4c4270d842fad76da4e7 /ext/pgsql
parentb2eb454171b8d8050f7e68c6fb342ae29cf29819 (diff)
downloadphp-git-189e2d8862f780afdafad3f7d29553d6d77bb7a9.tar.gz
this is the right parameter
Diffstat (limited to 'ext/pgsql')
-rw-r--r--ext/pgsql/pgsql.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c
index 58737b99cb..87940a8ee3 100644
--- a/ext/pgsql/pgsql.c
+++ b/ext/pgsql/pgsql.c
@@ -2147,7 +2147,7 @@ PHP_FUNCTION(pg_lo_write)
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);