mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-08 01:15:37 +08:00
initial commit for macOS support
This commit is contained in:
@@ -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';
|
||||
|
||||
8
src/globals/tests/bcmath.php
Normal file
8
src/globals/tests/bcmath.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
/** @noinspection PhpComposerExtensionStubsInspection */
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
bcscale(3);
|
||||
exit(bcdiv('105', '6.55957') === '16.007' ? 0 : 1);
|
||||
7
src/globals/tests/calendar.php
Normal file
7
src/globals/tests/calendar.php
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
/** @noinspection PhpComposerExtensionStubsInspection */
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
exit(function_exists('cal_info') && is_array(cal_info(0)) ? 0 : 1);
|
||||
5
src/globals/tests/curl.php
Normal file
5
src/globals/tests/curl.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
exit(function_exists('curl_init') ? 0 : 1);
|
||||
5
src/globals/tests/dom.php
Normal file
5
src/globals/tests/dom.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
exit(class_exists('\\DOMDocument') ? 0 : 1);
|
||||
5
src/globals/tests/redis.php
Normal file
5
src/globals/tests/redis.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
exit(class_exists('\\Redis') ? 0 : 1);
|
||||
Reference in New Issue
Block a user