]> granicus.if.org Git - php/commitdiff
Fix incorrect printf modifiers
authorNikita Popov <nikita.ppv@gmail.com>
Wed, 12 Jun 2019 10:02:40 +0000 (12:02 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Wed, 12 Jun 2019 11:17:25 +0000 (13:17 +0200)
ext/standard/file.c

index 32d35ce432c949654359ee676d43bd40096eb538..a651c8744ce008f62f70e89ed116587c872ba499 100644 (file)
@@ -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);