From 2d8c5f719e5c908059d3a34bc2356fa507c825f0 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 28 Mar 2025 12:19:02 +0900 Subject: fix nesting level message --- README.md | 2 ++ index.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e48997b..0ac1832 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,7 @@ It will output the following: ``` Running on PHP Running on PHPHP on PHP +Running on PHPHP on PHPHP on PHP Hello, World! ``` @@ -49,6 +50,7 @@ It will execute hello world on PHPHP on PHPHP on PHP. Running on PHP Running on PHPHP on PHP Running on PHPHP on PHPHP on PHP +Running on PHPHP on PHPHP on PHPHP on PHP Hello, World! ``` diff --git a/index.php b/index.php index a7c49ee..90db58d 100644 --- a/index.php +++ b/index.php @@ -1195,8 +1195,8 @@ $env['funcs'] = []; $env['consts'] = []; if (defined('PHPHP')) { + echo "Running" . str_repeat(" on PHPHP", PHPHP) . " on PHP\n"; if (PHPHP < 2) { - echo "Running" . str_repeat(" on PHPHP", PHPHP) . " on PHP\n"; $file = './index.php'; } else { $file = './hello.php'; -- cgit v1.2.3-70-g09d2