1--TEST--
2Check for default OpenSSL config path on Windows
3--SKIPIF--
4<?php
5if (substr(PHP_OS, 0, 3) != 'WIN') {
6    die('skip windows only test');
7}
8?>
9--FILE--
10<?php
11
12ob_start();
13phpinfo();
14$info = ob_get_contents();
15ob_end_clean();
16
17preg_match(",Openssl default config .* (.*),", $info, $m);
18
19if (isset($m[1])) {
20    var_dump(str_replace('/', '\\', strtolower($m[1])));
21}
22?>
23--EXPECT--
24string(28) "c:\usr\local\ssl\openssl.cnf"
25