php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39784 Can't make an instance of ZipArchive
Submitted: 2006-12-09 20:39 UTC Modified: 2006-12-11 00:57 UTC
From: itsmegawtf at gmail dot com Assigned:
Status: Closed Package: Zip Related
PHP Version: 5.2.0 OS: Gentoo linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: itsmegawtf at gmail dot com
New email:
PHP Version: OS:

 

 [2006-12-09 20:39 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-12-09 23:39 UTC] 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-10 08:47 UTC] itsmegawtf at gmail dot com
yes, you was right, thx.
this bug can be closed.
 [2006-12-11 00:57 UTC] pajoye@php.net
"Pierre: can the engine disable it at runtime I guess right ?"

I never used the ze1 compatibility mode. 5.1.x is required to use the new OO interface in Zip, do we really need hacks for that? I don't think :)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 12:01:30 2024 UTC