From: Pierre Joye Date: Sun, 3 Jun 2007 19:50:36 +0000 (+0000) Subject: - PECL #11216 test X-Git-Tag: php-5.2.4RC1~443 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fd2e66bd05022b023379de86577e3498fded0e96;p=php - PECL #11216 test --- diff --git a/ext/zip/tests/bug11216.phpt b/ext/zip/tests/bug11216.phpt new file mode 100644 index 0000000000..b5fa9b93bd --- /dev/null +++ b/ext/zip/tests/bug11216.phpt @@ -0,0 +1,27 @@ +--TEST-- +Bug #11216 (::addEmptyDir() crashes when the directory already exists) +--SKIPIF-- + +--FILE-- +open('__test.zip', ZIPARCHIVE::CREATE); +var_dump($archive->addEmptyDir('test')); +var_dump($archive->addEmptyDir('test')); +$archive->close(); +unlink('__test.zip'); +?> +--EXPECT-- +bool(true) +ZipArchive Object +( + [status] => 0 + [statusSys] => 0 + [numFiles] => 1 + [filename] => + [comment] => +) +bool(false)