php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay
files >> /opt/php-7.0.1/ext/zip/tests/ |
files >> //opt/php-7.0.1/ext/zip/tests/bug70322.phpt |
--TEST-- Bug #70322 (ZipArchive::close() doesn't indicate errors) --DESCRIPTION-- We want to test whether ZipArchive::close() returns FALSE and raises a warning on failure, so we force the failure by adding a file to the archive, which we delete before closing. --SKIPIF-- <?php if (!extension_loaded('zip')) die('skip requires zip extension'); ?> --FILE-- <?php $zipfile = __DIR__ . '/bug70322.zip'; $textfile = __DIR__ . '/bug70322.txt'; touch($textfile); $zip = new ZipArchive(); $zip->open($zipfile, ZipArchive::CREATE); $zip->addFile($textfile); unlink($textfile); var_dump($zip->close()); ?> --CLEAN-- <?php // we don't expect the archive to be created, but clean up just in case... @unlink(__DIR__ . '/bug70322.zip'); ?> --EXPECTF-- Warning: ZipArchive::close(): Read error: No such file or directory in %s%ebug70322.php on line %d bool(false)y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`