Skip to content

Commit 525fcc8

Browse files
committed
Run stream_server_reneg_limit.phpt on Windows, too
1 parent 70d052c commit 525fcc8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

ext/openssl/tests/stream_server_reneg_limit.phpt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ openssl
77
if (!function_exists("proc_open")) die("skip no proc_open");
88
exec('openssl help', $out, $code);
99
if ($code > 0) die("skip couldn't locate openssl binary");
10-
if(substr(PHP_OS, 0, 3) == 'WIN') {
11-
die('skip not suitable for Windows');
12-
}
1310
?>
1411
--FILE--
1512
<?php
@@ -74,7 +71,8 @@ $clientCode = <<<'CODE'
7471
phpt_wait();
7572
7673
$cmd = 'openssl s_client -connect 127.0.0.1:64321';
77-
$descriptorSpec = [["pipe", "r"], ["pipe", "w"], ["pipe", "w"]];
74+
$type = PHP_OS_FAMILY !== "Windows" ? "pipe" : "socket";
75+
$descriptorSpec = [[$type, "r"], [$type, "w"], [$type, "w"]];
7876
$process = proc_open($cmd, $descriptorSpec, $pipes);
7977
8078
list($stdin, $stdout, $stderr) = $pipes;

0 commit comments

Comments
 (0)