Commit:    63ed8eb0a5264f3388b3ce0ba10bff7cd856ed7d
Author:    Anatoliy Belsky <a...@php.net>         Tue, 10 Apr 2012 12:57:10 
+0200
Parents:   e33d209076e55a367b8a78cbf4bce7e4f1e08d20
Branches:  master

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=63ed8eb0a5264f3388b3ce0ba10bff7cd856ed7d

Log:
Fixed bug #61632 Test ext\sockets\tests\socket_create_listen.phpt fails

Bugs:
https://bugs.php.net/61632

Changed paths:
  A  ext/sockets/tests/socket_create_listen-win32.phpt
  M  ext/sockets/tests/socket_create_listen.phpt


Diff:
diff --git a/ext/sockets/tests/socket_create_listen-win32.phpt 
b/ext/sockets/tests/socket_create_listen-win32.phpt
new file mode 100644
index 0000000..23bf963
--- /dev/null
+++ b/ext/sockets/tests/socket_create_listen-win32.phpt
@@ -0,0 +1,21 @@
+--TEST--
+Test if socket binds on 31338
+--SKIPIF--
+<?php
+if (substr(PHP_OS, 0, 3) != 'WIN') {
+       die('skip.. Not valid for non Windows');
+}
+if (!extension_loaded('sockets')) {
+    die('SKIP The sockets extension is not loaded.');
+}
+--FILE--
+<?php
+$sock = socket_create_listen(31338);
+socket_getsockname($sock, $addr, $port); 
+var_dump($addr, $port);
+--EXPECT--
+string(9) "127.0.0.1"
+int(31338)
+--CREDITS--
+Till Klampaeckel, t...@php.net
+PHP Testfest Berlin 2009-05-09
diff --git a/ext/sockets/tests/socket_create_listen.phpt 
b/ext/sockets/tests/socket_create_listen.phpt
index 440fade..76f2942 100644
--- a/ext/sockets/tests/socket_create_listen.phpt
+++ b/ext/sockets/tests/socket_create_listen.phpt
@@ -2,6 +2,9 @@
 Test if socket binds on 31338
 --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.');
 }


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to