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