From ced1f9aa91ee36857fec9664c9ccd86ba2310821 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Tue, 18 Aug 2026 04:47:02 +0900 Subject: refactor(function-exists): drop checks for always-present capabilities function_exists() returns false in PHP when a function is blocked by disable_functions, when its extension is not compiled in, or when the PHP version predates it. None of those apply to a native binary. --- crates/shirabe-symfony-process/src/process.rs | 7 ------- 1 file changed, 7 deletions(-) (limited to 'crates/shirabe-symfony-process') diff --git a/crates/shirabe-symfony-process/src/process.rs b/crates/shirabe-symfony-process/src/process.rs index 991bdd08..06e60cab 100644 --- a/crates/shirabe-symfony-process/src/process.rs +++ b/crates/shirabe-symfony-process/src/process.rs @@ -213,13 +213,6 @@ impl Process { input: PhpMixed, timeout: Option, ) -> anyhow::Result { - if !shirabe_php_shim::function_exists("proc_open") { - return Err(LogicException::new( - "The Process class relies on proc_open, which is not available on your PHP installation.".to_string(), - ) - .into()); - } - let mut this = Self::empty(); this.commandline = CommandLine::Array(command); this.cwd = cwd; -- cgit v1.3.1-4-g156e