com php-src: Fix #78642: Wrong libiconv version displayed: NEWS ext/iconv/iconv.c

From: Date: Tue, 08 Oct 2019 10:09:11 +0000
Subject: com php-src: Fix #78642: Wrong libiconv version displayed: NEWS ext/iconv/iconv.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-108796@lists.php.net to get a copy of this message
Commit: 195c2008e8f25040130e597f46cd652829c84dba Author: Christoph M. Becker <cmbecker69@gmx.de> Tue, 8 Oct 2019 12:09:11 +0200 Parents: 05d6878b3b687c3d1a8037e42a7050d309a74e17 Branches: PHP-7.2 PHP-7.3 PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=195c2008e8f25040130e597f46cd652829c84dba Log: Fix #78642: Wrong libiconv version displayed The high byte of _libiconv_version specifies the major version; the low byte the minor version. Bugs: https://bugs.php.net/78642 Changed paths: M NEWS M ext/iconv/iconv.c Diff: diff --git a/NEWS b/NEWS index 3b26acca5fe...d2056ad45dc 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,9 @@ PHP NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? ??? 2019, PHP 7.2.25 +- Iconv: + . Fixed bug #78642 (Wrong libiconv version displayed). (gedas at martynas, + cmb). 24 Oct 2019, PHP 7.2.24 diff --git a/ext/iconv/iconv.c b/ext/iconv/iconv.c index 781985ce3e4..12f8c90eaf4 100644 --- a/ext/iconv/iconv.c +++ b/ext/iconv/iconv.c @@ -286,7 +286,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

« previous php.cvs (#108796) next »