Add gnu based static binary support

This commit is contained in:
crazywhalecc
2025-01-28 19:37:50 +08:00
parent f19e90afd7
commit 75ee69b07d
19 changed files with 201 additions and 18 deletions

View File

@@ -83,4 +83,9 @@ const AUTOCONF_CPPFLAGS = 4;
const AUTOCONF_LDFLAGS = 8;
const AUTOCONF_ALL = 15;
const LIBC_MUSL_WRAPPER = 'musl-wrapper';
const LIBC_MUSL = 'musl';
const LIBC_GLIBC = 'glibc';
ConsoleLogger::$date_format = 'H:i:s';
ConsoleLogger::$format = '[%date%] [I] %body%';

View File

@@ -4,4 +4,6 @@ declare(strict_types=1);
assert(function_exists('openssl_digest'));
assert(openssl_digest('123456', 'md5') === 'e10adc3949ba59abbe56e057f20f883e');
assert(file_get_contents('https://example.com/') !== false);
if (file_exists('/etc/ssl/openssl.cnf')) {
assert(file_get_contents('https://example.com/') !== false);
}