Skip to content

fix: process phpinfo() in cli mode as well#199

Merged
DeepDiver1975 merged 1 commit intomasterfrom
fix/phpinfo-cli
Jun 13, 2024
Merged

fix: process phpinfo() in cli mode as well#199
DeepDiver1975 merged 1 commit intomasterfrom
fix/phpinfo-cli

Conversation

@DeepDiver1975
Copy link
Member

No description provided.

@DeepDiver1975 DeepDiver1975 force-pushed the fix/phpinfo-cli branch 4 times, most recently from 9c949e0 to 1986c49 Compare June 12, 2024 14:18
Copy link
Contributor

@IljaN IljaN left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice test

@IljaN
Copy link
Contributor

IljaN commented Jun 12, 2024

Maybe you could simplify the code by calling phpinfo without credits.
https://www.php.net/manual/de/function.phpinfo.php

Copy link
Member

@jvillafanez jvillafanez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just tiny detail, but it's ok to skip

return $result;
private function getPhpInfoDetailArray(): array {
$p = new PHPInfo();
$d = $p->load();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return $p->parsePhpInfo(); seems better now.

@sonarqubecloud
Copy link

@iasdeoupxe
Copy link

Is this solving #96 and #168?

@phil-davis phil-davis deleted the fix/phpinfo-cli branch July 12, 2024 05:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants