xref: /PHP-7.1/sapi/cli/tests/bug68291.phpt (revision fd94c921)
1--TEST--
2Bug #68291 (404 on urls with '+')
3--INI--
4allow_url_fopen=1
5--SKIPIF--
6<?php
7include "skipif.inc";
8?>
9--FILE--
10<?php
11include "php_cli_server.inc";
12file_put_contents(__DIR__ . '/bug68291+test.html', 'Found');
13php_cli_server_start(NULL, NULL);
14echo file_get_contents('http://' . PHP_CLI_SERVER_ADDRESS . '/bug68291+test.html');
15?>
16--CLEAN--
17<?php
18@unlink(__DIR__ . '/bug68291+test.html');
19?>
20--EXPECT--
21Found
22