]> granicus.if.org Git - php/commitdiff
MFH : str is string not a long
authorAndrey Hristov <andrey@php.net>
Thu, 28 Aug 2003 21:09:21 +0000 (21:09 +0000)
committerAndrey Hristov <andrey@php.net>
Thu, 28 Aug 2003 21:09:21 +0000 (21:09 +0000)
ext/pgsql/pgsql.c

index d2638a8d3905b47df06f90a95c865da51ce3db0e..7eeaf5ea6093fb18383f61cb261c25f3ad01df64 100644 (file)
@@ -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) {