Annotation of embedaddon/php/ext/zip/tests/bug53885.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Bug #53885 (ZipArchive segfault with FL_UNCHANGED on empty archive)
        !             3: --SKIPIF--
        !             4: <?php
        !             5: if(!extension_loaded('zip')) die('skip');
        !             6: ?>
        !             7: --FILE--
        !             8: <?php
        !             9: $fname = dirname(__FILE__)."/test53885.zip";
        !            10: if(file_exists($fname)) unlink($fname);
        !            11: touch($fname);
        !            12: $nx=new ZipArchive();
        !            13: $nx->open($fname);
        !            14: $nx->locateName("a",ZIPARCHIVE::FL_UNCHANGED);
        !            15: $nx->statName("a",ZIPARCHIVE::FL_UNCHANGED);
        !            16: ?>
        !            17: ==DONE==
        !            18: --CLEAN--
        !            19: <?php
        !            20: $fname = dirname(__FILE__)."/test53885.zip";
        !            21: unlink($fname);
        !            22: ?>
        !            23: --EXPECTF--
        !            24: ==DONE==

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>