|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-01-31 21:36 UTC] felipe@php.net
-Status: Open
+Status: Feedback
[2011-01-31 21:36 UTC] felipe@php.net
[2011-02-01 08:57 UTC] schmale at froglogic dot com
-Status: Feedback
+Status: Open
[2011-02-01 08:57 UTC] schmale at froglogic dot com
[2011-02-07 17:20 UTC] pajoye@php.net
[2011-02-07 17:20 UTC] pajoye@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: pajoye
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 01:00:01 2025 UTC |
Description: ------------ PHP version (as given in phpinfo()): PHP Version 5.3.3-1ubuntu9.3 Zip-related information: Zip enabled Extension Version $Id: php_zip.c 300470 2010-06-15 18:48:33Z pajoye $ Zip version 1.9.1 Libzip version 0.9.0 Test script: --------------- function testReturnValue() { $extractToPath = "/home/user/testDir"; /* existing dir with NO write privileges */ $zipPath = "path/to/zipFile"; // has to be valid zip file $zip = new ZipArchive(); $open = $zip->open($zipPath); if ($open === true) { $extracting = $zip->extractTo($extractToPath); $zip->close(); return $extracting; } else { return false; } } Expected result: ---------------- Return value of testReturnValue() should be FALSE, as long as the php user has no write access to the directory into which we extract the zip (because if that's the case, nothing will happen). Actual result: -------------- Return value is TRUE, even if no extracting happened due to lacking privileges.