|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-06-20 10:01 UTC] ab@php.net
-Status: Open
+Status: Not a bug
[2013-06-20 10:01 UTC] ab@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 13 21:00:01 2025 UTC |
Description: ------------ ZipArchive::addFile does not work as expected when using windows directory separators (/). Backslashes in string $filename are not converted into folders. Test script: --------------- $zip = new ZipArchive(); if ($zip->open() === true) { // gives a file named "dir/somefile.txt" $zip->addFile("dir".DIRECTORY_SEPARATOR."somefile.txt"); // works properly $zip->addFile("dir/somefile.txt"); } $zip->close();