odd ZipArchive error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello again:

I am getting an odd ZipArchive::open error.
I don't really understand this error, let alone why I am getting it.

This is all I can find in the online manual.

ZipArchive::ER_MULTIDISK (integer)
Multi-disk zip archives not supported.

all the files referenced are on the same disc at or below the "home dir", in this
case '/<path>/dev_lab';

I am developing on a Mac OSX Yosemite/Apache/php v5.5x. The machine is
a multi core intel processor, but what would that have to do with it?
All the dev activity is in the  Apache document root directory.

This is what my code is trying to do, essentially;


$_name = /<path>/dev_lab/dist/new.zip
$_retStr = self::$_zipper->open($_name, ZIPARCHIVE::CREATE);

So this was picked up in code because ZipArchive::close comes up false;

But close is supposed to be called automatically, so why would it be necessary to call close explicitly in order to get the return value of open? My code tests for a return value of open before testing for the return value of close. It does not see a return value for open, but sees a false value for close and presents the
error code returned by open.

Thanks for time and attention
JK


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux