Annotation of embedaddon/php/ext/standard/tests/file/bug43353-win32.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #43353 wrong detection of 'data' wrapper
! 3: --SKIPIF--
! 4: <?php
! 5: if(substr(PHP_OS, 0, 3) != "WIN")
! 6: die("skip Run only on Windows");
! 7: ?>
! 8: --FILE--
! 9: <?php
! 10:
! 11: var_dump(is_dir('file:///datafoo:test'));
! 12: var_dump(is_dir('datafoo:test'));
! 13: var_dump(file_get_contents('data:text/plain,foo'));
! 14: var_dump(file_get_contents('datafoo:text/plain,foo'));
! 15:
! 16: ?>
! 17: --EXPECTF--
! 18: bool(false)
! 19: bool(false)
! 20: string(3) "foo"
! 21:
! 22: Warning: file_get_contents(datafoo:text/plain,foo): failed to open stream: Invalid argument in %s
! 23: bool(false)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>