Skip to content

Commit 5be772a

Browse files
committed
Fix incorrect printf modifiers
1 parent 2134cc2 commit 5be772a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/standard/file.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ PHP_FUNCTION(file_put_contents)
661661
if (Z_STRLEN_P(data)) {
662662
numbytes = php_stream_write(stream, Z_STRVAL_P(data), Z_STRLEN_P(data));
663663
if (numbytes != Z_STRLEN_P(data)) {
664-
php_error_docref(NULL, E_WARNING, "Only "ZEND_LONG_FMT" of %zd bytes written, possibly out of free disk space", numbytes, Z_STRLEN_P(data));
664+
php_error_docref(NULL, E_WARNING, "Only %zd of %zd bytes written, possibly out of free disk space", numbytes, Z_STRLEN_P(data));
665665
numbytes = -1;
666666
}
667667
}
@@ -697,7 +697,7 @@ PHP_FUNCTION(file_put_contents)
697697
if (zend_std_cast_object_tostring(data, &out, IS_STRING) == SUCCESS) {
698698
numbytes = php_stream_write(stream, Z_STRVAL(out), Z_STRLEN(out));
699699
if (numbytes != Z_STRLEN(out)) {
700-
php_error_docref(NULL, E_WARNING, "Only "ZEND_LONG_FMT" of %zd bytes written, possibly out of free disk space", numbytes, Z_STRLEN(out));
700+
php_error_docref(NULL, E_WARNING, "Only %zd of %zd bytes written, possibly out of free disk space", numbytes, Z_STRLEN(out));
701701
numbytes = -1;
702702
}
703703
zval_ptr_dtor_str(&out);

0 commit comments

Comments
 (0)