PageRenderTime 40ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/hphp/test/zend/bad/ext/zip/tests/bug11216.php

http://github.com/facebook/hiphop-php
PHP | 9 lines | 9 code | 0 blank | 0 comment | 0 complexity | 1a855faeec113d482829d44fd35a41e3 MD5 | raw file
Possible License(s): LGPL-2.1, BSD-2-Clause, BSD-3-Clause, MPL-2.0-no-copyleft-exception, MIT, LGPL-2.0, Apache-2.0
  1. <?php
  2. $archive = new ZipArchive();
  3. $archive->open('__test.zip', ZIPARCHIVE::CREATE);
  4. var_dump($archive->addEmptyDir('test'));
  5. print_r($archive);
  6. var_dump($archive->addEmptyDir('test'));
  7. $archive->close();
  8. unlink('__test.zip');
  9. ?>