Bug #78520 [NEW]: php download file name ≈ä½  好;123.zip

From: Date: Tue, 10 Sep 2019 03:14:00 +0000
Subject: Bug #78520 [NEW]: php download file name ≈ä½  好;123.zip
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-222672@lists.php.net to get a copy of this message
From: 77738609 at qq dot com Operating system: PHP version: 7.4.0RC1 Package: *URL Functions Bug Type: Bug Bug description:php download file name ≈ä½  好;123.zip Description: ------------ php download file name '≈ä½  好;123.zip'; file name is &ap c# can download Test script: --------------- php download file name '≈ä½  好;123.zip'; $filename = iconv('utf-8',"gbk//IGNORE",$filename); $filepath = 'D:/www/'.$filename; $file=fopen($filepath,"r"); header("Content-type:text/html;charset=utf-8"); header("Content-Type: application/octet-stream"); header("Accept-Ranges: bytes"); header("Accept-Length: ".filesize($filepath)); header("Content-Disposition: attachment; filename= $filename ; filename*=utf-8''$filename "); echo fread($file,filesize($filepath)); fclose($file); Expected result: ---------------- php download file name '≈ä½  好;123.zip'; Actual result: -------------- php download file name '≈ä½  好;123.zip'; -- Edit bug report at https://bugs.php.net/bug.php?id=78520&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=78520&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=78520&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=78520&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=78520&r=needscript Try newer version: https://bugs.php.net/fix.php?id=78520&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=78520&r=support Expected behavior: https://bugs.php.net/fix.php?id=78520&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=78520&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=78520&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=78520&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=78520&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=78520&r=dst IIS Stability: https://bugs.php.net/fix.php?id=78520&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=78520&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=78520&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=78520&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=78520&r=mysqlcfg

« previous php.bugs (#222672) next »