#39784 [Opn->Csd]: Can't make an instance of ZipArchive
| From: | tony2001@php.net | Date: | Sun, 10 Dec 2006 11:05:26 +0000 |
| Subject: | #39784 [Opn->Csd]: Can't make an instance of ZipArchive | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-106157@lists.php.net to get a copy of this message | ||
ID: 39784
Updated by: tony2001@php.net
Reported By: itsmegawtf at gmail dot com
-Status: Open
+Status: Closed
Bug Type: Zip Related
Operating System: Gentoo linux
PHP Version: 5.2.0
Previous Comments:
------------------------------------------------------------------------
[2006-12-10 08:47:26] itsmegawtf at gmail dot com
yes, you was right, thx.
this bug can be closed.
------------------------------------------------------------------------
[2006-12-09 23:39:31] judas dot iscariote at gmail dot com
You need to disable zend.ze1_compatibility_mode.
Pierre: can the engine disable it at runtime I guess right ?
------------------------------------------------------------------------
[2006-12-09 20:39:16] itsmegawtf at gmail dot com
Description:
------------
Can't make an instance of ZipArchive
Reproduce code:
---------------
<?php
$zip_handle = new ZipArchive();
if($zip_handle->open('sample.zip')) {
$zip_handle->extractTo('test');
$zip_handle->close();
}
?>
Expected result:
----------------
archive must be extracted
Actual result:
--------------
Fatal error: Trying to clone an uncloneable object of class ZipArchive
in Command line code on line 1
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39784&edit=1