Annotation of embedaddon/php/ext/sockets/tests/socket_select-wrongparams-1.phpt, revision 1.1.1.2

1.1       misho       1: --TEST--
                      2: Test parameter handling in socket_select().
                      3: --SKIPIF--
                      4: <?php
1.1.1.2 ! misho       5: if (substr(PHP_OS, 0, 3) == 'WIN') {
        !             6:        die('skip.. Not valid for Windows');
        !             7: }
1.1       misho       8: if (!extension_loaded('sockets')) {
                      9:     die('SKIP The sockets extension is not loaded.');
                     10: }
                     11: --FILE--
                     12: <?php
                     13: $sockets = array();
1.1.1.2 ! misho      14: $domain = AF_UNIX;
1.1       misho      15: socket_create_pair($domain, SOCK_STREAM, 0, $sockets);
                     16: 
                     17: $write  = null;
                     18: $except = null;
                     19: $time   = -1;
                     20: var_dump(socket_select($sockets, $write, $except, $time));
                     21: --EXPECTF--
                     22: Warning: socket_select(): unable to select [%d]: Invalid argument in %s on line %d
                     23: bool(false)
                     24: --CREDITS--
                     25: Till Klampaeckel, till@php.net
                     26: Berlin TestFest 2009

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>