mirror of
https://github.com/php/php-src.git
synced 2024-11-24 18:34:21 +08:00
fd94c92171
URI paths have to be treated according to RFC 3986 by the CLI web server, not as application/x-www-form-urlencoded.
22 lines
416 B
PHP
22 lines
416 B
PHP
--TEST--
|
|
Bug #68291 (404 on urls with '+')
|
|
--INI--
|
|
allow_url_fopen=1
|
|
--SKIPIF--
|
|
<?php
|
|
include "skipif.inc";
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
include "php_cli_server.inc";
|
|
file_put_contents(__DIR__ . '/bug68291+test.html', 'Found');
|
|
php_cli_server_start(NULL, NULL);
|
|
echo file_get_contents('http://' . PHP_CLI_SERVER_ADDRESS . '/bug68291+test.html');
|
|
?>
|
|
--CLEAN--
|
|
<?php
|
|
@unlink(__DIR__ . '/bug68291+test.html');
|
|
?>
|
|
--EXPECT--
|
|
Found
|