diff options
author | Dmitry Stogov <dmitry@zend.com> | 2016-06-21 16:00:37 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2016-06-21 16:00:37 +0300 |
commit | 16160386982a86e6ec7969c6c89707d38228f19e (patch) | |
tree | 47052539a23ab7d6d2cf79392dd1e47de67bb2f1 /ext/fileinfo | |
parent | 67e23f4be3c01a389043ee97b98d6bcc703d3557 (diff) | |
download | php-git-16160386982a86e6ec7969c6c89707d38228f19e.tar.gz |
Added ZEND_ATTRIBUTE_FORMAT to some middind functions.
"%p" replaced by ZEND_LONG_FMT to avoid compilation warnings.
Fixed most incorrect use cases of format specifiers.
Diffstat (limited to 'ext/fileinfo')
-rw-r--r-- | ext/fileinfo/fileinfo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/fileinfo/fileinfo.c b/ext/fileinfo/fileinfo.c index cc56e188fd..1473900999 100644 --- a/ext/fileinfo/fileinfo.c +++ b/ext/fileinfo/fileinfo.c @@ -173,7 +173,7 @@ zend_function_entry finfo_class_functions[] = { #define FINFO_SET_OPTION(magic, options) \ if (magic_setflags(magic, options) == -1) { \ - php_error_docref(NULL, E_WARNING, "Failed to set option '%pd' %d:%s", \ + php_error_docref(NULL, E_WARNING, "Failed to set option '" ZEND_LONG_FMT "' %d:%s", \ options, magic_errno(magic), magic_error(magic)); \ RETURN_FALSE; \ } @@ -340,7 +340,7 @@ PHP_FUNCTION(finfo_open) if (finfo->magic == NULL) { efree(finfo); - php_error_docref(NULL, E_WARNING, "Invalid mode '%pd'.", options); + php_error_docref(NULL, E_WARNING, "Invalid mode '" ZEND_LONG_FMT "'.", options); if (object) { zend_restore_error_handling(&zeh); if (!EG(exception)) { |