ID: 30326
Comment by: greg at catalina-it dot com dot au
Reported By: adamsbarker at hotmail dot com
Status: No Feedback
Bug Type: ZZiplib Related
Operating System: Windows XP
PHP Version: 5.0.2
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[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] [EMAIL PROTECTED]
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] [EMAIL PROTECTED]
it probably means that the working directory is different then you
think it is. What does echo getcwd(); output?
------------------------------------------------------------------------
[2004-10-06 11:19:50] adamsbarker at hotmail dot com
yes, both the "php" and "zip" files are in the same directory... i
completely removed php and got copies of the latest stable version/PECL
extensions for Windows, but still the same problem... this problem seems
to be running throughout the versions, since i first noticed it a couple
of months ago.
------------------------------------------------------------------------
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