1--TEST--
2ziparchive::addEmptyDir error
3--SKIPIF--
4<?php
5/* $Id$ */
6if(!extension_loaded('zip')) die('skip');
7?>
8--FILE--
9<?php
10
11include __DIR__ . '/utils.inc';
12
13$zip = new ZipArchive;
14if (!$zip->open(__DIR__ . '/test.zip', ZipArchive::RDONLY)) {
15	exit('failed');
16}
17
18var_dump($zip->addEmptyDir('emptydir'));
19if ($zip->status == ZipArchive::ER_RDONLY) {
20	echo "OK\n";
21} else if ($zip->status == ZipArchive::ER_OK) {
22	dump_entries_name($zip);
23} else {
24	echo "Lost\n";
25}
26$zip->close();
27?>
28--EXPECTF--
29bool(false)
30OK
31