Annotation of embedaddon/php/ext/zlib/tests/zlib_scheme_dir_basic.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Test compress.zlib:// scheme with the directory functions
! 3: --SKIPIF--
! 4: <?php
! 5: if (!extension_loaded("zlib")) {
! 6: print "skip - ZLIB extension not loaded";
! 7: }
! 8: ?>
! 9: --FILE--
! 10: <?php
! 11: $inputFileName = dirname(__FILE__)."/dir.gz";
! 12: $srcFile = "compress.zlib://$inputFileName";
! 13: var_dump(mkdir($srcFile));
! 14: var_dump(is_dir($srcFile));
! 15: var_dump(opendir($srcFile));
! 16: var_dump(rmdir($srcFile));
! 17: ?>
! 18: ===DONE===
! 19: --EXPECTF--
! 20: bool(false)
! 21: bool(false)
! 22:
! 23: Warning: opendir(compress.zlib://%s/dir.gz): failed to open dir: not implemented in %s on line %d
! 24: bool(false)
! 25: bool(false)
! 26: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>