diff options
author | Pierre Joye <pajoye@php.net> | 2008-08-30 23:55:04 +0000 |
---|---|---|
committer | Pierre Joye <pajoye@php.net> | 2008-08-30 23:55:04 +0000 |
commit | 10d0029dce6cde443c5be240c43f96da983c9488 (patch) | |
tree | f204b9b345b2c49243f79a4ca986ef25dd28516f /ext/zip | |
parent | 046f8dba552ffc7111836b2bc28330ea65c02792 (diff) | |
download | php-git-10d0029dce6cde443c5be240c43f96da983c9488.tar.gz |
- MFH: file will exist only on error (thx tony for the headup)
Diffstat (limited to 'ext/zip')
-rw-r--r-- | ext/zip/tests/oo_delete.phpt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/zip/tests/oo_delete.phpt b/ext/zip/tests/oo_delete.phpt index ec1f8cdeee..9eac821734 100644 --- a/ext/zip/tests/oo_delete.phpt +++ b/ext/zip/tests/oo_delete.phpt @@ -63,8 +63,12 @@ $sb = $zip->statIndex(1); var_dump($sb); $sb = $zip->statIndex(2); var_dump($sb); +$zip->close(); unset($zip); -unlink($file); + +if (file_exists($file)) { + unlink($file); +} ?> --EXPECTF-- ok |