Bug #68139 [Com]: Why phpinfo() relies on sapi instead of directive html_errors?

From: Date: Sun, 04 Oct 2015 22:12:10 +0000
Subject: Bug #68139 [Com]: Why phpinfo() relies on sapi instead of directive html_errors?
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-196390@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=68139&edit=1 ID: 68139 Comment by: someone dot wanted dot to dot be dot unknown at gmail dot com Reported by: someone dot wanted dot to dot be dot unknown at gmail dot com Summary: Why phpinfo() relies on sapi instead of directive html_errors? Status: No Feedback Type: Bug Package: CGI/CLI related Operating System: Windows PHP Version: 5.5.17 Block user comment: N Private report: N New Comment: I think if html_errors in on, phpinfo() should print html version, otherwise text version. Previous Comments: ------------------------------------------------------------------------ [2014-10-04 09:49:40] 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-02 22:11:42] 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. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=68139&edit=1

« previous php.bugs (#196390) next »