xref: /PHP-8.2/ext/phar/tests/zip/gh13037.phpt (revision ba80372a)
1--TEST--
2GH-13037 (PharData incorrectly extracts zip file)
3--EXTENSIONS--
4phar
5--FILE--
6<?php
7$phar = new PharData(__DIR__ . '/files/gh13037.zip');
8$phar->extractTo(__DIR__ . '/out_gh13037/');
9echo file_get_contents(__DIR__ . '/out_gh13037/test');
10?>
11--CLEAN--
12<?php
13@unlink(__DIR__ . '/out_gh13037/test');
14@rmdir(__DIR__ . '/out_gh13037');
15?>
16--EXPECT--
17hello
18