mirror of
https://github.com/php-win-ext/php-rar.git
synced 2026-04-26 22:08:05 +02:00
78b7a5f63b
Add a musl/LLVM Docker build environment for compiling portable Linux binaries that work on both musl and glibc systems, along with a minimal PHP Docker image for testing. Add CI workflows to build and publish these images to ghcr.io. Update test and build scripts to use the new Docker-based environment, and remove SKIPIF guards from tests since the extension is always present and doing otherwise would mask extension loading failures.
25 lines
433 B
PHP
25 lines
433 B
PHP
--TEST--
|
|
RarEntry::getStream() on unicode entry
|
|
--FILE--
|
|
<?php
|
|
|
|
$rar_file1 = rar_open(dirname(__FILE__).'/rar_unicode.rar');
|
|
$entry = rar_entry_get($rar_file1, "file1À۞.txt");
|
|
echo $entry."\n";
|
|
echo "\n";
|
|
$stream = $entry->getStream();
|
|
if ($stream !== false)
|
|
while (!feof($stream)) {
|
|
echo fread($stream, 8192);
|
|
}
|
|
|
|
echo "\n";
|
|
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECTF--
|
|
RarEntry for file "file1À۞.txt" (52b28202)
|
|
|
|
contents of file 1
|
|
Done
|