ID:               43093
 Updated by:       [EMAIL PROTECTED]
 Reported By:      alan at dunns dot co dot uk
-Status:           Open
+Status:           Feedback
 Bug Type:         Zip Related
 Operating System: Linux
 PHP Version:      5.2.4
 Assigned To:      pajoye
 New Comment:

There is an error while reading.

It is hard to say why, but that's the reason why you get the warnings.
The archive was not opened correctly.

Please try using the command line, it will make your tests easier.
Maybe it is a permission problem or something else.

I tried this archive locally and it works perfectly. At the very least,
I can try to debug on your host directly if you provide me a remote
access (don't post it here but per email :).


Previous Comments:
------------------------------------------------------------------------

[2007-12-03 14:54:51] alan at dunns dot co dot uk

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)

------------------------------------------------------------------------

[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".

------------------------------------------------------------------------

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

Reply via email to