#30326 [NoF->Opn]: "zip_open" cannot open file

From: Date: Tue, 14 Dec 2004 08:20:53 +0000
Subject: #30326 [NoF->Opn]: "zip_open" cannot open file
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-70194@lists.php.net to get a copy of this message
ID: 30326 User updated by: adamsbarker at hotmail dot com Reported By: adamsbarker at hotmail dot com -Status: No Feedback +Status: Open Bug Type: ZZiplib Related Operating System: Windows XP PHP Version: 5.0.2 New Comment: i am still having problems using the latest snapshots - so i would have to say it hasn't changed Previous Comments: ------------------------------------------------------------------------ [2004-12-14 09:11:34] greg at catalina-it dot com dot au I have found the same thing. I have a zip file in the same dir as the zip file, and under Windows XP (PHP 4.3.8) and zip_open() cant open it. When I include the full path from C: etc it works fine. This certainly looks like a bug, at least up to 4.3.8. Can someone try it on later versions to see if the bug has been fixed or not. ------------------------------------------------------------------------ [2004-12-06 01:00:11] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2004-11-28 13:54:56] tony2001@php.net Please, check that your web-server has all necessary NTFS permissions to read this file. ------------------------------------------------------------------------ [2004-10-07 01:13:16] adamsbarker at hotmail dot com This is how i've done it: - my home directory is "D:\home" - both "open_zip.php" AND "abc.zip" are in "D:\home" - zip_open('D:\home\abc.zip'); - this works perfectly - zip_open('abc.zip'); - has this error: Warning: zip_open() [function.zip-open]: Cannot open zip archive abc.zip in D:\home\open_zip.php on line 3 - echo getcwd(); => produces this: D:\home i hope this makes sense :) ------------------------------------------------------------------------ [2004-10-06 11:22:00] derick@php.net it probably means that the working directory is different then you think it is. What does echo getcwd(); output? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/30326 -- Edit this bug report at http://bugs.php.net/?id=30326&edit=1

« previous php.bugs (#70194) next »