mirror of
https://github.com/php-win-ext/php-rar.git
synced 2026-04-28 14:53: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.
17 lines
358 B
PHP
17 lines
358 B
PHP
--TEST--
|
|
RarEntry direct instantiation does not crash (PHP 7)
|
|
--SKIPIF--
|
|
<?php
|
|
if (!defined('PHP_VERSION_ID') || PHP_VERSION_ID < 70000) die("skip for PHP >= 7");
|
|
--FILE--
|
|
<?php
|
|
|
|
new RarEntry();
|
|
|
|
echo "Done\n";
|
|
--EXPECTF--
|
|
Fatal error: Uncaught Error: Call to private RarEntry::__construct() from %s in %s:%d
|
|
Stack trace:
|
|
#0 {main}
|
|
thrown in %s on line %d
|