From e709c9b928a3d3f645e00ef1d112a53519ded560 Mon Sep 17 00:00:00 2001 From: NathanFreeman <1056159381@qq.com> Date: Fri, 31 Jul 2026 21:26:16 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=93=81=E7=89=8C?= =?UTF-8?q?=E5=AE=A3=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TypePHP.txt | 6 ++++++ bin/bootstrap.php | 1 + bin/tpc.php | 2 ++ 3 files changed, 9 insertions(+) create mode 100644 TypePHP.txt diff --git a/TypePHP.txt b/TypePHP.txt new file mode 100644 index 00000000..2f8ee52e --- /dev/null +++ b/TypePHP.txt @@ -0,0 +1,6 @@ + ______ ____ __ ______ ______ _ __ + /_ __/_ ______ ___ / __ \/ / / / __ \ / ____/___ ____ ___ ____ (_) /__ _____ + / / / / / / __ \/ _ \/ /_/ / /_/ / /_/ / / / / __ \/ __ `__ \/ __ \/ / / _ \/ ___/ + / / / /_/ / /_/ / __/ ____/ __ / ____/ / /___/ /_/ / / / / / / /_/ / / / __/ / +/_/ \__, / .___/\___/_/ /_/ /_/_/ \____/\____/_/ /_/ /_/ .___/_/_/\___/_/ + /____/_/ /_/ v%s \ No newline at end of file diff --git a/bin/bootstrap.php b/bin/bootstrap.php index d412fdb3..ca8a1b26 100644 --- a/bin/bootstrap.php +++ b/bin/bootstrap.php @@ -1,6 +1,7 @@ Date: Fri, 31 Jul 2026 21:38:44 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E8=89=BA=E6=9C=AF=E5=AD=97=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TypePHP.txt | 4 ++-- bin/bootstrap.php | 1 + bin/tpc.php | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/TypePHP.txt b/TypePHP.txt index 2f8ee52e..3b242480 100644 --- a/TypePHP.txt +++ b/TypePHP.txt @@ -2,5 +2,5 @@ /_ __/_ ______ ___ / __ \/ / / / __ \ / ____/___ ____ ___ ____ (_) /__ _____ / / / / / / __ \/ _ \/ /_/ / /_/ / /_/ / / / / __ \/ __ `__ \/ __ \/ / / _ \/ ___/ / / / /_/ / /_/ / __/ ____/ __ / ____/ / /___/ /_/ / / / / / / /_/ / / / __/ / -/_/ \__, / .___/\___/_/ /_/ /_/_/ \____/\____/_/ /_/ /_/ .___/_/_/\___/_/ - /____/_/ /_/ v%s \ No newline at end of file +/_/ \__, / .___/\___/_/ /_/ /_/_/ \____/\____/_/ /_/ /_/ .___/_/_/\___/_/ v%s + /____/_/ /_/ %s diff --git a/bin/bootstrap.php b/bin/bootstrap.php index ca8a1b26..fe6616c4 100644 --- a/bin/bootstrap.php +++ b/bin/bootstrap.php @@ -2,6 +2,7 @@ define("ROOT_PATH", dirname(__DIR__)); define('DEBUG', true); define('VERSION', '0.4.1'); +define('WEBSITE', 'https://www.swoole.com/aot/'); require ROOT_PATH . '/vendor/autoload.php'; require ROOT_PATH . '/src/functions.php'; \ No newline at end of file diff --git a/bin/tpc.php b/bin/tpc.php index ea4f8e11..7b9fd65f 100755 --- a/bin/tpc.php +++ b/bin/tpc.php @@ -5,7 +5,7 @@ require __DIR__ . '/../src/polyfills.php'; require __DIR__ . '/../src/gen_stub.php'; require __DIR__ . '/../src/compiler.php'; -echo sprintf(file_get_contents(ROOT_PATH . '/TypePHP.txt'), VERSION) . PHP_EOL; +echo sprintf(file_get_contents(ROOT_PATH . "/TypePHP.txt"), VERSION, WEBSITE) . PHP_EOL; const TYPEPHP_PHP_SCRIPT_ENTRY = true; main($argc, $argv); -- 2.34.1 From 854390329ab6bcb474b461ce25674b6b12b68da2 Mon Sep 17 00:00:00 2001 From: NathanFreeman <1056159381@qq.com> Date: Fri, 31 Jul 2026 21:40:42 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E5=B0=86define=20=E6=9B=BF=E6=8D=A2?= =?UTF-8?q?=E6=88=90const?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/bootstrap.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/bootstrap.php b/bin/bootstrap.php index fe6616c4..4c684367 100644 --- a/bin/bootstrap.php +++ b/bin/bootstrap.php @@ -1,8 +1,8 @@ Date: Sat, 1 Aug 2026 17:01:16 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E5=B0=86=E7=BD=91=E5=9D=80=E5=B8=B8?= =?UTF-8?q?=E9=87=8F=E4=BD=9C=E4=B8=BATranslator=E4=B8=80=E9=83=A8?= =?UTF-8?q?=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/bootstrap.php | 2 -- bin/tpc.php | 2 +- src/Translator.php | 1 + 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/bootstrap.php b/bin/bootstrap.php index 4c684367..1c4d4802 100644 --- a/bin/bootstrap.php +++ b/bin/bootstrap.php @@ -1,8 +1,6 @@