ID: 43093 User updated by: alan at dunns dot co dot uk Reported By: alan at dunns dot co dot uk -Status: Feedback +Status: Open Bug Type: Zip Related Operating System: Linux PHP Version: 5.2.4 Assigned To: pajoye New Comment:
I re-ran after verifying the file name and path: int(5) Warning: ZipArchive::extractTo() [function.ZipArchive-extractTo]: Invalid or unitialized Zip object in /srv/www/vhosts/bountywebtest/test/test.php on line 14 bool(false) Warning: ZipArchive::close() [function.ZipArchive-close]: Invalid or unitialized Zip object in /srv/www/vhosts/bountywebtest/test/test.php on line 17 bool(false) Previous Comments: ------------------------------------------------------------------------ [2007-12-03 14:26:16] [EMAIL PROTECTED] The first return value "int(11)" means that the open methods did not find the file or can't open it. Be sure it is in your path. Alternatively you can try using an absolute path. To test with 5.2.5, you can simply install it locally on your windows and run your script using the command line. Feel free to come back or ask if you still experience problem to open this archive. ------------------------------------------------------------------------ [2007-12-03 14:21:38] alan at dunns dot co dot uk i have run the revised code, here is the result int(11) Warning: ZipArchive::extractTo() [function.ZipArchive-extractTo]: Invalid or unitialized Zip object in /srv/www/vhosts/bountywebtest/test/test.php on line 14 bool(false) Warning: ZipArchive::close() [function.ZipArchive-close]: Invalid or unitialized Zip object in /srv/www/vhosts/bountywebtest/test/test.php on line 17 bool(false) We are very pressured, so it may take a while to install an upgrade to php5.2.5. We are running 5.1.6. ------------------------------------------------------------------------ [2007-12-02 17:00:25] [EMAIL PROTECTED] I finally got the time to sit down and try this bug. I sadly can't reproduce it. Can you try it again using php 5.2.5? Please use the following code and paste the result here: $zip = new ZipArchive; $r = $zip->open("/srv/ftp/bountywin/TEST/IN/Bounty_02695b.zip"); var_dump($r); $r = $zip->extractTo("/srv/ftp/bountywin/TEST/IN/TEMPDATA"); var_dump($r); $r = $zip->close(); var_dump($r); ------------------------------------------------------------------------ [2007-11-01 01:00:00] 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". ------------------------------------------------------------------------ [2007-10-24 14:04:31] [EMAIL PROTECTED] These credentials do not work. Please mail me a working user/password (pierre dot php at gmail dot com) ------------------------------------------------------------------------ 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/43093 -- Edit this bug report at http://bugs.php.net/?id=43093&edit=1