mirror of
https://github.com/php-win-ext/php-rar.git
synced 2026-04-30 07:43: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.
14 lines
230 B
PHP
14 lines
230 B
PHP
--TEST--
|
|
RarEntry::getHostOs()
|
|
--FILE--
|
|
<?php
|
|
$a = rar_open(dirname(__FILE__) . '/4mb.rar');
|
|
$e = $a->getEntry('4mb.txt');
|
|
var_dump($e->getHostOs());
|
|
var_dump(RarEntry::HOST_WIN32);
|
|
echo "Done.\n";
|
|
--EXPECTF--
|
|
int(2)
|
|
int(2)
|
|
Done.
|