mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-07 16:55:38 +08:00
Add gnu based static binary support
This commit is contained in:
@@ -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%';
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user