1--TEST--
2Check for default OpenSSL config path on Windows
3--EXTENSIONS--
4openssl
5--SKIPIF--
6<?php
7if (substr(PHP_OS, 0, 3) != 'WIN') {
8    die('skip windows only test');
9}
10?>
11--ENV--
12OPENSSL_CONF=
13--FILE--
14<?php
15
16ob_start();
17phpinfo();
18$info = ob_get_contents();
19ob_end_clean();
20
21preg_match(",Openssl default config [^ ]* (.*),", $info, $m);
22
23if (isset($m[1])) {
24    var_dump(str_replace('/', '\\', strtolower($m[1])));
25} else {
26    echo $info;
27}
28?>
29--EXPECTF--
30string(%d) "c:\program files%r( \(x86\)|)%r\common files\ssl\openssl.cnf"
31