Skip to content

Commit 9e1b582

Browse files
committed
Test stream_context_tcp_nodelay_server on Windows
Closes GH-17308
1 parent b873176 commit 9e1b582

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.github/scripts/windows/test_task.bat

+2-1
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,9 @@ rem generate php.ini
9797
echo extension_dir=%PHP_BUILD_DIR% > %PHP_BUILD_DIR%\php.ini
9898
echo opcache.file_cache=%PHP_BUILD_DIR%\test_file_cache >> %PHP_BUILD_DIR%\php.ini
9999
if "%OPCACHE%" equ "1" echo zend_extension=php_opcache.dll >> %PHP_BUILD_DIR%\php.ini
100-
rem work-around for some spawned PHP processes requiring OpenSSL
100+
rem work-around for some spawned PHP processes requiring OpenSSL and sockets
101101
echo extension=php_openssl.dll >> %PHP_BUILD_DIR%\php.ini
102+
echo extension=php_sockets.dll >> %PHP_BUILD_DIR%\php.ini
102103

103104
rem remove ext dlls for which tests are not supported
104105
for %%i in (imap ldap oci8_12c pdo_firebird pdo_oci snmp) do (

ext/standard/tests/streams/stream_context_tcp_nodelay_server.phpt

+2-5
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ sockets
55
--SKIPIF--
66
<?php
77
if (!function_exists("proc_open")) die("skip no proc_open");
8-
if (substr(PHP_OS, 0, 3) == 'WIN') {
9-
die('skip sockets ext currently does not work in worker on Windows');
10-
}
118
?>
129
--FILE--
1310
<?php
@@ -32,12 +29,12 @@ CODE;
3229

3330
$clientCode = <<<'CODE'
3431
$test = stream_socket_client("tcp://{{ ADDR }}", $errno, $errstr, 10);
35-
3632
echo phpt_wait();
3733
CODE;
3834

3935
include sprintf("%s/../../../openssl/tests/ServerClientTestCase.inc", __DIR__);
4036
ServerClientTestCase::getInstance()->run($clientCode, $serverCode);
4137
?>
42-
--EXPECT--
38+
--EXPECTF--
4339
server-delay:conn-nodelay
40+

0 commit comments

Comments
 (0)