xref: /PHP-8.2/tests/basic/gh7896.phpt (revision 93a3c71e)
1--TEST--
2GH-7896 (Environment vars may be mangled on Windows)
3--SKIPIF--
4<?php
5if (PHP_OS_FAMILY !== "Windows") die("skip for Windows only");
6?>
7--ENV--
8FÖÖ=GüИter传
9--FILE--
10<?php
11var_dump(
12    $_SERVER['FÖÖ'],
13    $_ENV['FÖÖ'],
14    getenv('FÖÖ')
15);
16?>
17--EXPECT--
18string(11) "GüИter传"
19string(11) "GüИter传"
20string(11) "GüИter传"
21