From: Andrey Hristov Date: Thu, 28 Aug 2003 21:09:21 +0000 (+0000) Subject: MFH : str is string not a long X-Git-Tag: php-4.3.4RC1~149 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0767e6f1e2f68824002e0db226064397188f00a9;p=php MFH : str is string not a long --- diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index d2638a8d39..7eeaf5ea60 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -2026,7 +2026,8 @@ PHP_FUNCTION(pg_lo_write) if (argc > 2) { convert_to_long_ex(z_len); if (Z_LVAL_PP(z_len) > Z_STRLEN_PP(str)) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot write more than buffer size %ld. Tried to write %ld.", Z_LVAL_PP(str), Z_LVAL_PP(z_len)); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot write more than buffer size %d. Tried to write %ld.", + Z_STRLEN_PP(str), Z_LVAL_PP(z_len)); RETURN_FALSE; } if (Z_LVAL_PP(z_len) < 0) {