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 /Zend/zend_operators.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 'Zend/zend_operators.c')
-rw-r--r-- | Zend/zend_operators.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c index f3d78c19bc..540f97943e 100644 --- a/Zend/zend_operators.c +++ b/Zend/zend_operators.c @@ -508,7 +508,7 @@ ZEND_API void ZEND_FASTCALL _convert_to_cstring(zval *op ZEND_FILE_LINE_DC) /* { zend_string *str; double dval = Z_DVAL_P(op); - str = zend_strpprintf(0, "%.*H", (int) EG(precision), dval); + str = zend_strpprintf_unchecked(0, "%.*H", (int) EG(precision), dval); ZVAL_NEW_STR(op, str); } else { _convert_to_string(op ZEND_FILE_LINE_CC); |