Skip to content

Commit 2576936

Browse files
committed
add test
1 parent ca89d9a commit 2576936

File tree

1 file changed

+24
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)