diff options
author | Greg Beaver <cellog@php.net> | 2008-04-16 04:11:14 +0000 |
---|---|---|
committer | Greg Beaver <cellog@php.net> | 2008-04-16 04:11:14 +0000 |
commit | f513caa0a6acbe697748704cae67ef974c2ca2c6 (patch) | |
tree | ff8ea221d2e571a7f258a17dd8e1abb9f45bb24d /ext/phar/tests/zip/files | |
parent | dc837b5f53717393c625e5a96ba00a7c56bf5c04 (diff) | |
download | php-git-f513caa0a6acbe697748704cae67ef974c2ca2c6.tar.gz |
add failing test for metadata support in zip archives
Diffstat (limited to 'ext/phar/tests/zip/files')
-rw-r--r-- | ext/phar/tests/zip/files/metadata.phar.inc | 11 | ||||
-rw-r--r-- | ext/phar/tests/zip/files/metadata.phar.zip | bin | 0 -> 779 bytes |
2 files changed, 11 insertions, 0 deletions
diff --git a/ext/phar/tests/zip/files/metadata.phar.inc b/ext/phar/tests/zip/files/metadata.phar.inc new file mode 100644 index 0000000000..932fc961e3 --- /dev/null +++ b/ext/phar/tests/zip/files/metadata.phar.inc @@ -0,0 +1,11 @@ +<?php +@unlink(dirname(__FILE__) . '/metadata.phar.zip'); +$a = new Phar(dirname(__FILE__) . '/metadata.phar.zip'); +$a['a'] = 'a'; +$a['b'] = 'b'; +$a['b']->setMetadata('hi there'); +$a['c'] = 'c'; +$a['c']->setMetadata(array('hi', 'there')); +$a['d'] = 'd'; +$a['d']->setMetadata(array('hi'=>'there','foo'=>'bar')); +?> diff --git a/ext/phar/tests/zip/files/metadata.phar.zip b/ext/phar/tests/zip/files/metadata.phar.zip Binary files differnew file mode 100644 index 0000000000..3c5cf0065f --- /dev/null +++ b/ext/phar/tests/zip/files/metadata.phar.zip |