From 72df422d69b7c8c1ca9ef65aa6e1088d76d2fa46 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Fri, 5 Oct 2018 22:51:58 +0200 Subject: [PATCH 1/3] Add test for bug #76942 --- ext/intl/tests/bug76942_MessageFormatter.phpt | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 ext/intl/tests/bug76942_MessageFormatter.phpt diff --git a/ext/intl/tests/bug76942_MessageFormatter.phpt b/ext/intl/tests/bug76942_MessageFormatter.phpt new file mode 100644 index 00000000000..baafb00cedf --- /dev/null +++ b/ext/intl/tests/bug76942_MessageFormatter.phpt @@ -0,0 +1,33 @@ +--TEST-- +Bug #76942 U_ARGUMENT_TYPE_MISMATCH +--SKIPIF-- + +--FILE-- +format($vars); +if ($result === false) { + throw new Exception($formatter->getErrorMessage(), $formatter->getErrorCode()); +} + +var_dump($result); + +?> +==DONE== +--EXPECT-- +string(7) "7,12 MB" +==DONE== From aaf4cc05eb96b73aea7b93eb3e273524d3bcb497 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Fri, 5 Oct 2018 22:57:27 +0200 Subject: [PATCH 2/3] [ci skip] Update NEWS --- NEWS | 3 +++ 1 file changed, 3 insertions(+) diff --git a/NEWS b/NEWS index 837d3066503..7ce61b05650 100644 --- a/NEWS +++ b/NEWS @@ -13,6 +13,9 @@ PHP NEWS . Fixed bug #76972 (Data truncation due to forceful ssl socket shutdown). (Manuel Mausz) +- intl: + . Fixed bug #76942 (U_ARGUMENT_TYPE_MISMATCH). (anthrax at unixuser dot org) + 11 Oct 2018, PHP 7.1.23 - Core: From fec5786f87a904e595d602688b666dbc80f5e1b1 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Fri, 5 Oct 2018 22:59:55 +0200 Subject: [PATCH 3/3] [ci skip] Update NEWS --- NEWS | 3 +++ 1 file changed, 3 insertions(+) diff --git a/NEWS b/NEWS index ee75ecd908c..82c250ef2fc 100644 --- a/NEWS +++ b/NEWS @@ -14,6 +14,9 @@ PHP NEWS . Fixed bug #76972 (Data truncation due to forceful ssl socket shutdown). (Manuel Mausz) +- intl: + . Fixed bug #76942 (U_ARGUMENT_TYPE_MISMATCH). (anthrax at unixuser dot org) + - Reflection: . Fixed bug #76936 (Objects cannot access their private attributes while handling reflection errors). (Nikita)