Call to undefined method ZipArchive::addEmptyDir()

Hello,

if i want to deploy a application (or a whole project) i get the following message:

Fatal error: Call to undefined method ZipArchive::addEmptyDir() in /var/www/scriptcase/devel/lib/php/functions.inc.php on line 5842

Its not able to create a zip-file, so cant download it. its trying to create a zip-file for the libs as well, so i cant get these either.

what could i do?

thanks a lot,

Mati

Re: Call to undefined method ZipArchive::addEmptyDir()

What version of PHP do you have installed?
ZipArchive: (PHP 5 >= 5.2.0, PECL zip >= 1.1.0)

Regards,
Scott.

Re: Call to undefined method ZipArchive::addEmptyDir()

Hi,

thanks for your answer.

I’m running the following:

$ php -version
PHP 5.2.0-8+etch16 (cli) (built: Nov 24 2009 11:14:47)
Copyright © 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright © 1998-2006 Zend Technologies
with Zend Optimizer v3.3.9, Copyright © 1998-2009, by Zend Technologies

how do i install PECL zip ?

thanks in advance,

mati

Re: Call to undefined method ZipArchive::addEmptyDir()

That should not be a problem. Do you have the proper rights to your DIR in SC5 install?

? chown -R www-data:www-data scriptcase
? chmod -R 777 scriptcase

Regards,
Scott.

Re: Call to undefined method ZipArchive::addEmptyDir()

Hi,

i performed these commands, but i still get that error :frowning:

any other idea?

thanks for your help,

Mati

Re: Call to undefined method ZipArchive::addEmptyDir()

My guess would be to upgrade your PHP version to the latest 5.2 version (NOT 5.3) of PHP. I have 5.2.10 and I see the latest is 5.2.13 on the site. I have seen a few bug reports of your error on the PHP bug reporting.

Regards,
Scott.

Re: Call to undefined method ZipArchive::addEmptyDir()

hey,

thanks for your help. i updated to 5.2.6 and its working properly now.

thanks a lot,

Mati