1--TEST--
2sprintf() %h and %H specifiers
3--SKIPIF--
4<?php
5if (setlocale(LC_ALL, 'invalid') === 'invalid') { die('skip setlocale() is broken /w musl'); }
6if (!setlocale(LC_ALL, "de_DE.utf8")) die("skip de_DE.utf8 locale not available");
7?>
8--FILE--
9<?php
10
11setlocale(LC_ALL, "de_DE.utf8");
12$f = 1.25;
13printf("%g %G %h %H\n", $f, $f, $f, $f);
14$f = 0.00000125;
15printf("%g %G %h %H\n", $f, $f, $f, $f);
16
17?>
18--EXPECT--
191,25 1,25 1.25 1.25
201,25e-6 1,25E-6 1.25e-6 1.25E-6
21