Bug #79736 [NEW]: ZipArchive

From: Date: Thu, 25 Jun 2020 18:45:33 +0000
Subject: Bug #79736 [NEW]: ZipArchive
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-227670@lists.php.net to get a copy of this message
From: edultra at gmail dot com Operating system: Windows and Linux PHP version: 7.2.31 Package: *Compression related Bug Type: Bug Bug description:ZipArchive Description: ------------ Quando você utiliza o ziparchive para criar um zip de uma pasta com subpastas e arquivos em um servidor windows ele cria o arquivo, porém na descompressão em um servidor Linux os arquivos ficam todos errados, pelo que consegui descobrir é devido a posição da barra que ele faz para o windows exemplo: a pasta no windows contém a seguinte estrutura/arquivos: index.html images image1.jpg image2.jpg image3.jpg styles style.css content home.html capitulo.html footer.html Pelo que vi ele salva o caminho para despois descomprimir index.html images\image1.jpg images\image2.jpg images\image3.jpg styles\style.css content\home.html content\capitulo.html content\footer.html Vejam que a posição no windows da barra é \ porém nesta posição o php interpreta que é para desconsiderar o próximo caracter ficando assim os caminhos no linux: index.html images\mage1.jpg images\mage2.jpg images\mage3.jpg styles\tyle.css content\ome.html content\apitulo.html content\ooter.html Os arquivos na raiz são extrai dos com sucesso mas os outros geram arquivos todos errados. Expected result: ---------------- Que os arquivos sejam extrai dos corretamente tanto os gerados no windows e extraidos no linux e vice-versa. Actual result: -------------- Os arquivos são extraidos todos com problema. -- Edit bug report at https://bugs.php.net/bug.php?id=79736&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=79736&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=79736&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=79736&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=79736&r=needscript Try newer version: https://bugs.php.net/fix.php?id=79736&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=79736&r=support Expected behavior: https://bugs.php.net/fix.php?id=79736&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=79736&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=79736&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=79736&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=79736&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=79736&r=dst IIS Stability: https://bugs.php.net/fix.php?id=79736&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=79736&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=79736&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=79736&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=79736&r=mysqlcfg

« previous php.bugs (#227670) next »