bug68291.phpt 419 B

123456789101112131415161718
  1. --TEST--
  2. Bug #68291 (404 on urls with '+')
  3. --INI--
  4. allow_url_fopen=1
  5. --SKIPIF--
  6. <?php
  7. include "skipif.inc";
  8. ?>
  9. --FILE--
  10. <?php
  11. include "php_cli_server.inc";
  12. $docRoot = php_cli_server_start(NULL, NULL)->docRoot;
  13. file_put_contents($docRoot . '/bug68291+test.html', 'Found');
  14. echo file_get_contents('http://' . PHP_CLI_SERVER_ADDRESS . '/bug68291+test.html');
  15. @unlink($docRoot . '/bug68291+test.html');
  16. ?>
  17. --EXPECT--
  18. Found