[php-src] Issue #10040: Add an optional parameter to phpinfo() for html output
| From: | joanhey | Date: | Fri, 02 Dec 2022 14:49:56 +0000 |
| Subject: | [php-src] Issue #10040: Add an optional parameter to phpinfo() for html output | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-243034@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/10040
Author: joanhey
### Description
Every time exist more CLI app frameworks: amp, react, workerman, ...
And
phpinfo(int $what = INFO_ALL): bool allways return an string output without HTML.
Every framework can create an html output, but I think that will be better return the same than in
other SAPIs.
Now it's hardcoded in the C code the output.
~Please add another parameter $html~
~phpinfo(int $what = INFO_ALL, $html = true): bool~
Or add a option in php.ini, phpinfo.html=false , perhaps it's easier.
By default for CLI will be false.
But will be changed easily for any CLI framework.
Thank you !!