mirror of
https://github.com/php-win-ext/php-rar.git
synced 2026-04-29 15:23:12 +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.
27 lines
443 B
PHP
27 lines
443 B
PHP
--TEST--
|
|
rar_close is called twice
|
|
--FILE--
|
|
<?php
|
|
|
|
$f1 = dirname(__FILE__) . "/latest_winrar.rar";
|
|
$a = RarArchive::open($f1);
|
|
|
|
echo $a."\n";
|
|
|
|
$a->close();
|
|
echo $a."\n";
|
|
|
|
$a->close();
|
|
echo $a."\n";
|
|
|
|
echo "\n";
|
|
echo "Done.\n";
|
|
--EXPECTF--
|
|
RAR Archive "%slatest_winrar.rar"
|
|
RAR Archive "%slatest_winrar.rar" (closed)
|
|
|
|
Warning: RarArchive::close(): The archive is already closed in %s on line %d
|
|
RAR Archive "%slatest_winrar.rar" (closed)
|
|
|
|
Done.
|