1
0
mirror of https://github.com/php/php-src.git synced 2026-04-19 22:11:12 +02:00
Files
archived-php-src/ext/standard/tests/file/bug43008.phpt
2016-11-20 21:11:53 +01:00

22 lines
563 B
PHP

--TEST--
Bug #43008 (php://filter uris ignore url encoded filternames and can't handle slashes)
--SKIPIF--
<?php
if (!extension_loaded("iconv")) die("skip iconv extension not available");
?>
--INI--
allow_url_fopen=1
--FILE--
<?php
$url = ""
. "php://filter/read="
. urlencode("convert.iconv.ISO-8859-15/UTF-8")
. '|' . urlencode("string.rot13")
. '|' . urlencode("string.rot13")
. '|' . urlencode("convert.iconv.UTF-8/ISO-8859-15")
. "/resource=data://text/plain,foob%E2r";
var_dump(urlencode(file_get_contents($url)));
?>
--EXPECTF--
string(8) "foob%E2r"