1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 19:23:22 +02:00

MFH : str is string not a long

This commit is contained in:
Andrey Hristov
2003-08-28 21:09:21 +00:00
parent 4f2153fd14
commit 0767e6f1e2
+2 -1
View 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) {