com php-src: Fix incorrect printf modifiers: ext/standard/file.c
| From: | Nikita Popov | Date: | Wed, 12 Jun 2019 11:17:25 +0000 |
| Subject: | com php-src: Fix incorrect printf modifiers: ext/standard/file.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-106722@lists.php.net to get a copy of this message | ||
Commit: 5be772a19ccb4ad7dda871e50e9349484de92d56
Author: Nikita Popov <nikita.ppv@gmail.com> Wed, 12 Jun 2019 12:02:40 +0200
Parents: 2134cc25d2ece0d38e1de194bc5486089e6d349f
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=5be772a19ccb4ad7dda871e50e9349484de92d56
Log:
Fix incorrect printf modifiers
Changed paths:
M ext/standard/file.c
Diff:
diff --git a/ext/standard/file.c b/ext/standard/file.c
index 32d35ce..a651c87 100644
--- a/ext/standard/file.c
+++ b/ext/standard/file.c
@@ -661,7 +661,7 @@ PHP_FUNCTION(file_put_contents)
if (Z_STRLEN_P(data)) {
numbytes = php_stream_write(stream, Z_STRVAL_P(data), Z_STRLEN_P(data));
if (numbytes != Z_STRLEN_P(data)) {
- 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));
+ php_error_docref(NULL, E_WARNING, "Only %zd of %zd bytes written, possibly out of free
disk space", numbytes, Z_STRLEN_P(data));
numbytes = -1;
}
}
@@ -697,7 +697,7 @@ PHP_FUNCTION(file_put_contents)
if (zend_std_cast_object_tostring(data, &out, IS_STRING) == SUCCESS) {
numbytes = php_stream_write(stream, Z_STRVAL(out), Z_STRLEN(out));
if (numbytes != Z_STRLEN(out)) {
- php_error_docref(NULL, E_WARNING, "Only "ZEND_LONG_FMT" of %zd bytes written,
possibly out of free disk space", numbytes, Z_STRLEN(out));
+ php_error_docref(NULL, E_WARNING, "Only %zd of %zd bytes written, possibly out of free
disk space", numbytes, Z_STRLEN(out));
numbytes = -1;
}
zval_ptr_dtor_str(&out);