Return to bug43353.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / file |
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 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: No such file or directory in %s 25: bool(false)