diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-08-18 04:47:02 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-08-18 04:47:18 +0900 |
| commit | ced1f9aa91ee36857fec9664c9ccd86ba2310821 (patch) | |
| tree | 630ea3eb3b0e710403669de9ba6a78a421e182a8 /crates/shirabe-symfony-console/src/output | |
| parent | 6b7c6cb9a3d1cdf93f261238c1edbc70706a33c7 (diff) | |
| download | php-shirabe-ced1f9aa91ee36857fec9664c9ccd86ba2310821.tar.gz php-shirabe-ced1f9aa91ee36857fec9664c9ccd86ba2310821.tar.zst php-shirabe-ced1f9aa91ee36857fec9664c9ccd86ba2310821.zip | |
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.
Diffstat (limited to 'crates/shirabe-symfony-console/src/output')
| -rw-r--r-- | crates/shirabe-symfony-console/src/output/console_output.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/crates/shirabe-symfony-console/src/output/console_output.rs b/crates/shirabe-symfony-console/src/output/console_output.rs index 4080d688..9c2904db 100644 --- a/crates/shirabe-symfony-console/src/output/console_output.rs +++ b/crates/shirabe-symfony-console/src/output/console_output.rs @@ -98,11 +98,7 @@ impl ConsoleOutput { /// doesn't properly convert character-encodings between ASCII to EBCDIC. fn is_running_os400() -> bool { let checks = [ - if shirabe_php_shim::function_exists("php_uname") { - shirabe_php_shim::php_uname("s") - } else { - String::new() - }, + shirabe_php_shim::php_uname("s"), shirabe_php_shim::getenv("OSTYPE") .unwrap_or_default() .to_string_lossy() |
