mirror of
https://github.com/php-win-ext/php-rar.git
synced 2026-04-25 13:28:06 +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.
23 lines
545 B
PHP
23 lines
545 B
PHP
--TEST--
|
|
rar_solid_is() basic test
|
|
--FILE--
|
|
<?php
|
|
$arch1 = RarArchive::open(dirname(__FILE__) . "/store_method.rar");
|
|
$arch2 = RarArchive::open(dirname(__FILE__) . "/solid.rar");
|
|
echo "$arch1: " . ($arch1->isSolid()?'yes':'no') ."\n";
|
|
echo "$arch2: " . (rar_solid_is($arch2)?'yes':'no') . "\n";
|
|
|
|
$arch2->close();
|
|
var_dump(rar_solid_is($arch2));
|
|
|
|
echo "\n";
|
|
echo "Done.\n";
|
|
--EXPECTF--
|
|
RAR Archive "%sstore_method.rar": no
|
|
RAR Archive "%ssolid.rar": yes
|
|
|
|
Warning: rar_solid_is(): The archive is already closed in %s on line %d
|
|
bool(false)
|
|
|
|
Done.
|