/
proc
/
3430793
/
root
/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
phar
/
tests
/
zip
/
File Upload :
llllll
Current File: //proc/3430793/root/usr/local/lsws/phpbuild/php-8.0.7/ext/phar/tests/zip/unixzip.phpt
--TEST-- Phar: test a zip archive created by unix "zip" command --SKIPIF-- <?php if (!extension_loaded("phar")) die("skip"); ?> --FILE-- <?php $a = new PharData(__DIR__ . '/files/zip.zip'); foreach ($a as $b) { if ($b->isDir()) { echo "dir " . $b->getPathName() . "\n"; } else { echo $b->getPathName(), "\n"; echo file_get_contents($b->getPathName()), "\n"; } } if (isset($a['notempty/hi.txt'])) { echo $a['notempty/hi.txt']->getPathName() . "\n"; } ?> --EXPECTF-- dir phar://%s/zip.zip%cempty phar://%s/zip.zip%chi.txt hi there dir phar://%s/zip.zip%cnotempty phar://%s/zip.zip/notempty%chi.txt
Copyright ©2k19 -
Hexid
|
Tex7ure