summaryrefslogtreecommitdiff
path: root/ext/sockets/tests/socket_select-wrongparams-1.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/sockets/tests/socket_select-wrongparams-1.phpt')
-rw-r--r--ext/sockets/tests/socket_select-wrongparams-1.phpt9
1 files changed, 4 insertions, 5 deletions
diff --git a/ext/sockets/tests/socket_select-wrongparams-1.phpt b/ext/sockets/tests/socket_select-wrongparams-1.phpt
index e786bc2..848088f 100644
--- a/ext/sockets/tests/socket_select-wrongparams-1.phpt
+++ b/ext/sockets/tests/socket_select-wrongparams-1.phpt
@@ -2,17 +2,16 @@
Test parameter handling in socket_select().
--SKIPIF--
<?php
+if (substr(PHP_OS, 0, 3) == 'WIN') {
+ die('skip.. Not valid for Windows');
+}
if (!extension_loaded('sockets')) {
die('SKIP The sockets extension is not loaded.');
}
--FILE--
<?php
$sockets = array();
-if (strtolower(substr(PHP_OS, 0, 3)) == 'win') {
- $domain = AF_INET;
-} else {
- $domain = AF_UNIX;
-}
+$domain = AF_UNIX;
socket_create_pair($domain, SOCK_STREAM, 0, $sockets);
$write = null;