diff --git a/NEWS b/NEWS index 28e399d3b46..8f79383ca56 100644 --- a/NEWS +++ b/NEWS @@ -9,6 +9,10 @@ PHP NEWS . Fixed bug #78632 (method_exists() in php74 works differently from php73 in checking priv. methods). (Nikita) +- Iconv: + . Fixed bug #78642 (Wrong libiconv version displayed). (gedas at martynas, + cmb). + - Pcntl: . Fixed bug #77335 (PHP is preventing SIGALRM from specifying SA_RESTART). (Nikita) diff --git a/ext/iconv/iconv.c b/ext/iconv/iconv.c index f70dcbf6138..d4244b19f43 100644 --- a/ext/iconv/iconv.c +++ b/ext/iconv/iconv.c @@ -281,7 +281,7 @@ PHP_MINIT_FUNCTION(miconv) { static char buf[16]; snprintf(buf, sizeof(buf), "%d.%d", - ((_libiconv_version >> 8) & 0x0f), (_libiconv_version & 0x0f)); + _libiconv_version >> 8, _libiconv_version & 0xff); version = buf; } #elif HAVE_GLIBC_ICONV