summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2019-10-08 12:10:35 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2019-10-08 12:10:58 +0200
commit346be2cf591ecc5e1f673ead407b265bd834d429 (patch)
tree9c9b4191895114a270af444569948199fd4bab20
parentc2781dbe5e03d80163a15da0d9f65c98be6e8a41 (diff)
parentd6fdc17f7fea5a4c4bfaf801f44d8b0a531428da (diff)
downloadphp-git-346be2cf591ecc5e1f673ead407b265bd834d429.tar.gz
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3: Fix #78642: Wrong libiconv version displayed
-rw-r--r--NEWS4
-rw-r--r--ext/iconv/iconv.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 28e399d3b4..8f79383ca5 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 f70dcbf613..d4244b19f4 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