From 6ea03a2515a675d873abfd54e3041f006157af21 Mon Sep 17 00:00:00 2001 From: lgb <353856593@qq.com> Date: Wed, 10 Apr 2024 12:31:34 +0800 Subject: [PATCH] fix pcntl_* function check --- nexus/Install/Install.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nexus/Install/Install.php b/nexus/Install/Install.php index bf5d1e66..8250a473 100644 --- a/nexus/Install/Install.php +++ b/nexus/Install/Install.php @@ -172,8 +172,8 @@ class Install $output = []; $command = "php -r 'var_export(function_exists(\"$fn\"));'"; $result = exec($command, $output, $result_code); - $lastThreeChars = substr(trim($output[0]), -3); - $exists = $lastThreeChars == 'true'; + $lastFourChars = substr(trim($output[0]), -4); + $exists = $lastFourChars == 'true'; if (!$exists) { $disabledFunctions[] = $fn; }