|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68139 Why phpinfo() relies on sapi instead of directive html_errors?
Submitted: 2014-10-02 22:11 UTC Modified: 2014-10-13 16:14 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: someone dot wanted dot to dot be dot unknown at gmail dot com Assigned:
Status: No Feedback Package: CGI/CLI related
PHP Version: 5.5.17 OS: Windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
20 + 17 = ?
Subscribe to this entry?

 [2014-10-02 22:11 UTC] someone dot wanted dot to dot be dot unknown at gmail dot com
I'm greatly impressed that phpinfo() does not allow configuring html or plain text should be printed.
Developers, you allow change the behavior of `var_dump` by means of `html_errors` directive. But why *** you did not this with `phpinfo` too? I hope you start thinking about that problem at least.
Srr for emotions, but this is inconsistency in language api.

Test script:

Expected result:
HTML output in any sapi, depending on `html_errors` directive or similar.

Actual result:
plain-text result.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2014-10-04 09:49 UTC]
-Status: Open +Status: Feedback
 [2014-10-04 09:49 UTC]
What do html_errors have to do with phpinfo? Please tell instead, what your issue in the first place is.

 [2014-10-13 16:14 UTC]
-Status: Feedback +Status: No Feedback
 [2015-10-04 22:12 UTC] someone dot wanted dot to dot be dot unknown at gmail dot com
I think if `html_errors` in on, phpinfo() should print html version, otherwise text version.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Fri Jan 27 09:05:54 2023 UTC