note 119932 added to ziparchive.getfromname

From: Date: Thu, 22 Sep 2016 11:02:05 +0000
Subject: note 119932 added to ziparchive.getfromname
Groups: php.notes 
Request: Send a blank email to php-notes+get-206651@lists.php.net to get a copy of this message
The handling of file names containing non-ASCII characters is undocumented. It seems that this function calls <?php mb_convert_encoding($name,"CP850","UTF-8") ?> and therefore expects DOS encoding in the zipfile but UTF-8 encoding for the name. If the zipfile uses UTF-8 names (Pkzip 4.5 / Winzip 11.2), this function fails. Use getFromIndex instead as a workaround. ---- Server IP: 72.52.91.14 Probable Submitter: 134.109.28.176 ---- Manual Page -- http://php.net/manual/en/ziparchive.getfromname.php Edit -- https://master.php.net/note/edit/119932 Del: integrated -- https://master.php.net/note/delete/119932/integrated Del: useless -- https://master.php.net/note/delete/119932/useless Del: bad code -- https://master.php.net/note/delete/119932/bad+code Del: spam -- https://master.php.net/note/delete/119932/spam Del: non-english -- https://master.php.net/note/delete/119932/non-english Del: in docs -- https://master.php.net/note/delete/119932/in+docs Del: other reasons-- https://master.php.net/note/delete/119932 Reject -- https://master.php.net/note/reject/119932 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#206651) next »