xref: /PHP-5.3/ext/standard/tests/file/bug43353.phpt (revision e2ab222c)
1--TEST--
2Bug #43353 wrong detection of 'data' wrapper
3--SKIPIF--
4<?php
5if(substr(PHP_OS, 0, 3) == "WIN")
6  die("skip on Windows");
7?>
8--INI--
9allow_url_fopen=1
10--FILE--
11<?php
12
13var_dump(is_dir('file:///datafoo:test'));
14var_dump(is_dir('datafoo:test'));
15var_dump(file_get_contents('data:text/plain,foo'));
16var_dump(file_get_contents('datafoo:text/plain,foo'));
17
18?>
19--EXPECTF--
20bool(false)
21bool(false)
22string(3) "foo"
23
24Warning: file_get_contents(datafoo:text/plain,foo): failed to open stream: No such file or directory in %s
25bool(false)
26