php.net |  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
Votes:1
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: someone dot wanted dot to dot be dot unknown at gmail dot com
New email:
PHP Version: OS:

 

 [2014-10-02 22:11 UTC] someone dot wanted dot to dot be dot unknown at gmail dot com
Description:
------------
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:
---------------
<?php
phpinfo();

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

Actual result:
--------------
plain-text result.

Patches

Pull Requests

History

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

Thanks.
 [2014-10-13 16:14 UTC] ab@php.net
-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-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 01:01:34 2025 UTC