diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2017-11-16 12:29:27 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2017-11-16 21:15:36 +0100 |
commit | 26f8fc833b9668a8b8e14ecd7d94930146019adb (patch) | |
tree | bd94fe2e87a8f1da483d7644b1d3a3f0091e1637 /ext/pcre/php_pcre.c | |
parent | b8a4225a5f9d2bbe7aeb4cabce659bc903f162f6 (diff) | |
download | php-git-26f8fc833b9668a8b8e14ecd7d94930146019adb.tar.gz |
Enable and fix printf() format warnings
Add _unchecked() variants of zend_spprintf and zend_strpprintf for
cases where we specifically want to disable these checks, such as
use of %H.
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r-- | ext/pcre/php_pcre.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index f53f39352a..fb1737897e 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -713,7 +713,7 @@ PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache(zend_string *regex) } #endif pcre2_get_error_message(errnumber, error, sizeof(error)); - php_error_docref(NULL,E_WARNING, "Compilation failed: %s at offset %d", error, erroffset); + php_error_docref(NULL,E_WARNING, "Compilation failed: %s at offset %zu", error, erroffset); efree(pattern); if (tables) { pefree((void*)tables, 1); |