Annotation of embedaddon/php/ext/standard/tests/file/bug43353-win32.phpt, revision 1.1.1.2
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: ?>
1.1.1.2 ! misho 8: --INI--
! 9: allow_url_fopen=1
1.1 misho 10: --FILE--
11: <?php
12:
13: var_dump(is_dir('file:///datafoo:test'));
14: var_dump(is_dir('datafoo:test'));
15: var_dump(file_get_contents('data:text/plain,foo'));
16: var_dump(file_get_contents('datafoo:text/plain,foo'));
17:
18: ?>
19: --EXPECTF--
20: bool(false)
21: bool(false)
22: string(3) "foo"
23:
24: Warning: file_get_contents(datafoo:text/plain,foo): failed to open stream: Invalid argument in %s
25: bool(false)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>