xref: /PHP-8.2/sapi/cli/tests/bug68291.phpt (revision 6ab4e330)
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";
12$docRoot = php_cli_server_start(NULL, NULL)->docRoot;
13file_put_contents($docRoot . '/bug68291+test.html', 'Found');
14echo file_get_contents('http://' . PHP_CLI_SERVER_ADDRESS . '/bug68291+test.html');
15@unlink($docRoot . '/bug68291+test.html');
16?>
17--EXPECT--
18Found
19