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/intl/converter | |
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/intl/converter')
-rw-r--r-- | ext/intl/converter/converter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/intl/converter/converter.c b/ext/intl/converter/converter.c index 5653b46365..94752d437b 100644 --- a/ext/intl/converter/converter.c +++ b/ext/intl/converter/converter.c @@ -152,7 +152,7 @@ static PHP_METHOD(UConverter, fromUCallback) { /* {{{ php_converter_check_limits */ static inline zend_bool php_converter_check_limits(php_converter_object *objval, zend_long available, zend_long needed) { if (available < needed) { - php_converter_throw_failure(objval, U_BUFFER_OVERFLOW_ERROR, "Buffer overrun %pd bytes needed, %pd available", needed, available); + php_converter_throw_failure(objval, U_BUFFER_OVERFLOW_ERROR, "Buffer overrun " ZEND_LONG_FMT " bytes needed, " ZEND_LONG_FMT " available", needed, available); return 0; } return 1; @@ -732,7 +732,7 @@ static PHP_METHOD(UConverter, reasonText) { UCNV_REASON_CASE(CLOSE) UCNV_REASON_CASE(CLONE) default: - php_error_docref(NULL, E_WARNING, "Unknown UConverterCallbackReason: %pd", reason); + php_error_docref(NULL, E_WARNING, "Unknown UConverterCallbackReason: " ZEND_LONG_FMT, reason); RETURN_FALSE; } } |