#39784 [Csd]: Can't make an instance of ZipArchive

From: Date: Mon, 11 Dec 2006 00:57:17 +0000
Subject: #39784 [Csd]: Can't make an instance of ZipArchive
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-106171@lists.php.net to get a copy of this message
ID: 39784 Updated by: pajoye@php.net Reported By: itsmegawtf at gmail dot com Status: Closed Bug Type: Zip Related Operating System: Gentoo linux PHP Version: 5.2.0 New Comment: "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 :) 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

« previous php.bugs (#106171) next »