xref: /php-src/ext/standard/tests/file/bug43008.phpt (revision 74859783)
1--TEST--
2Bug #43008 (php://filter uris ignore url encoded filternames and can't handle slashes)
3--EXTENSIONS--
4iconv
5--INI--
6allow_url_fopen=1
7--FILE--
8<?php
9$url = ""
10    . "php://filter/read="
11    . urlencode("convert.iconv.ISO-8859-15/UTF-8")
12    . '|' . urlencode("string.rot13")
13    . '|' . urlencode("string.rot13")
14    . '|' . urlencode("convert.iconv.UTF-8/ISO-8859-15")
15    . "/resource=data://text/plain,foob%E2r";
16var_dump(urlencode(file_get_contents($url)));
17?>
18--EXPECTF--
19string(8) "foob%E2r"
20