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

Add a Patch

Pull Requests

Add a Pull Request

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 Apr 25 19:01:33 2024 UTC