Annotation of embedaddon/php/ext/standard/tests/streams/bug49936_win32.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Bug #49936 (crash with ftp stream in php_stream_context_get_option())
        !             3: --SKIPIF--
        !             4: <?php
        !             5: if( substr(PHP_OS, 0, 3) != "WIN" )
        !             6:   die("skip. Do run on Windows only");
        !             7: ?>
        !             8: --INI--
        !             9: default_socket_timeout=2
        !            10: --FILE--
        !            11: <?php
        !            12: 
        !            13: $dir = 'ftp://your:self@localhost/';
        !            14: 
        !            15: var_dump(opendir($dir));
        !            16: var_dump(opendir($dir));
        !            17: 
        !            18: ?>
        !            19: --EXPECTF--
        !            20: Warning: opendir(): connect() failed: %s
        !            21:  in %s on line %d
        !            22: 
        !            23: Warning: opendir(ftp://...@localhost/): failed to open dir: operation failed in %s on line %d
        !            24: bool(false)
        !            25: 
        !            26: Warning: opendir(): connect() failed: %s
        !            27:  in %s on line %d
        !            28: 
        !            29: Warning: opendir(ftp://...@localhost/): failed to open dir: operation failed in %s on line %d
        !            30: bool(false)

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