2011-01-30 22:28:57 +00:00
|
|
|
--TEST--
|
|
|
|
Bug #53885 (ZipArchive segfault with FL_UNCHANGED on empty archive)
|
|
|
|
--SKIPIF--
|
|
|
|
<?php
|
|
|
|
if(!extension_loaded('zip')) die('skip');
|
|
|
|
?>
|
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
$fname = dirname(__FILE__)."/test53885.zip";
|
|
|
|
if(file_exists($fname)) unlink($fname);
|
|
|
|
touch($fname);
|
|
|
|
$nx=new ZipArchive();
|
|
|
|
$nx->open($fname);
|
|
|
|
$nx->locateName("a",ZIPARCHIVE::FL_UNCHANGED);
|
|
|
|
$nx->statName("a",ZIPARCHIVE::FL_UNCHANGED);
|
|
|
|
?>
|
|
|
|
==DONE==
|
2011-09-07 12:05:19 +00:00
|
|
|
--CLEAN--
|
|
|
|
<?php
|
|
|
|
$fname = dirname(__FILE__)."/test53885.zip";
|
|
|
|
unlink($fname);
|
|
|
|
?>
|
2011-01-30 22:28:57 +00:00
|
|
|
--EXPECTF--
|
|
|
|
==DONE==
|