initial commit for macOS support

This commit is contained in:
crazywhalecc
2023-03-18 17:32:21 +08:00
parent 64054f16c5
commit 4eee09c390
50 changed files with 4385 additions and 6 deletions

View File

@@ -35,9 +35,14 @@ const REPLACE_FILE_STR = 1;
const REPLACE_FILE_PREG = 2;
const REPLACE_FILE_USER = 3;
// 编译输出类型
const BUILD_MICRO_NONE = 0;
const BUILD_MICRO_ONLY = 1;
const BUILD_MICRO_BOTH = 2;
// 编译状态
const BUILD_STATUS_OK = 0;
const BUILD_STATUS_ALREADY = 1;
const BUILD_STATUS_FAILED = 2;
ConsoleLogger::$date_format = 'H:i:s';

View File

@@ -0,0 +1,8 @@
<?php
/** @noinspection PhpComposerExtensionStubsInspection */
declare(strict_types=1);
bcscale(3);
exit(bcdiv('105', '6.55957') === '16.007' ? 0 : 1);

View File

@@ -0,0 +1,7 @@
<?php
/** @noinspection PhpComposerExtensionStubsInspection */
declare(strict_types=1);
exit(function_exists('cal_info') && is_array(cal_info(0)) ? 0 : 1);

View File

@@ -0,0 +1,5 @@
<?php
declare(strict_types=1);
exit(function_exists('curl_init') ? 0 : 1);

View File

@@ -0,0 +1,5 @@
<?php
declare(strict_types=1);
exit(class_exists('\\DOMDocument') ? 0 : 1);

View File

@@ -0,0 +1,5 @@
<?php
declare(strict_types=1);
exit(class_exists('\\Redis') ? 0 : 1);