PHP  
 PHP_HEAD
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Test Failure Report for ext/curl/tests/bug77711.phpt ('FR #77711 (CURLFile should support UNICODE filenames)')

Script

1: <?php
2:
include 'server.inc';
3:
$host curl_cli_server_start();
4:
5:
$ch curl_init();
6:
curl_setopt($chCURLOPT_SAFE_UPLOAD1);
7:
curl_setopt($chCURLOPT_URL"{$host}/get.php?test=file");
8:
curl_setopt($chCURLOPT_RETURNTRANSFER1);
9:
10:
$filename __DIR__ '/АБВ.txt';
11:
file_put_contents($filename"Test.");
12:
$file curl_file_create($filename);
13:
$params = array('file' => $file);
14:
var_dump(curl_setopt($chCURLOPT_POSTFIELDS$params));
15:
16:
var_dump(curl_exec($ch));
17:
curl_close($ch);
18:
?>
19:
===DONE===
20:

Expected

bool(true)
string(%d) "АБВ.txt|application/octet-stream"
===DONE===

Output

bool(true)
string(215) "<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /responder/get.php was not found on this server.</p>
</body></html>
"
===DONE===

Diff

002+ string(215) "<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
003+ <html><head>
004+ <title>404 Not Found</title>
005+ </head><body>
006+ <h1>Not Found</h1>
007+ <p>The requested URL /responder/get.php was not found on this server.</p>
008+ </body></html>
009+ "
002- string(%d) "АБВ.txt|application/octet-stream"

 

Generated at Mon, 06 May 2019 17:58:35 +0000 (942 days ago)

Copyright © 2005-2021 The PHP Group
All rights reserved.