Annotation of embedaddon/php/ext/standard/tests/streams/bug49936.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 not run on Windows");
        !             7: ?>
        !             8: --FILE--
        !             9: <?php
        !            10: 
        !            11: $dir = 'ftp://your:self@localhost/';
        !            12: 
        !            13: var_dump(opendir($dir));
        !            14: var_dump(opendir($dir));
        !            15: 
        !            16: ?>
        !            17: --EXPECTF--
        !            18: Warning: opendir(): connect() failed: Connection refused in %s on line %d
        !            19: 
        !            20: Warning: opendir(ftp://...@localhost/): failed to open dir: operation failed in %s on line %d
        !            21: bool(false)
        !            22: 
        !            23: Warning: opendir(): connect() failed: Connection refused in %s on line %d
        !            24: 
        !            25: Warning: opendir(ftp://...@localhost/): failed to open dir: operation failed in %s on line %d
        !            26: bool(false)

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