Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
remove fully qualified function names
  • Loading branch information
krakjoe committed Sep 6, 2025
commit 62ef573d531f557a23114274d8164f5cd9b3ae70
18 changes: 7 additions & 11 deletions sapi/cli/tests/026.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,22 @@ include "skipif.inc";
?>
--FILE--
<?php
$php = \getenv('TEST_PHP_EXECUTABLE');
$php = getenv('TEST_PHP_EXECUTABLE');

$interface = \shell_exec(\sprintf(
"%s --ini=json",
$php));
$script = \shell_exec(\sprintf(
$interface = shell_exec(sprintf("%s --ini=json", $php));
$script = shell_exec(sprintf(
"%s -r 'echo json_encode([
\"file\" => php_ini_loaded_file(),
\"scanned\" => php_ini_scanned_files() ?: []]);'",
$php));

$response["interface"] = \json_decode($interface,
$response["interface"] = json_decode($interface,
JSON_THROW_ON_ERROR|JSON_OBJECT_AS_ARRAY);
$response["script"] = \json_decode($script,
JSON_THROW_ON_ERROR);
$response["script"] = json_decode($script, JSON_THROW_ON_ERROR);
if (isset($response["script"]["scanned"]) &&
$response["script"]["scanned"]) {
$response["script"]["scanned"] =
\array_map('trim',\explode(
",\n", $response["script"]["scanned"]));
$response["script"]["scanned"] = array_map('trim',
explode(",\n", $response["script"]["scanned"]));
}

if (!isset($response["interface"]["file"]) &&
Expand Down