Bug->Req #80530 [Nab->Opn]: Make phpinfo not output complete webpages
| From: | requinix@php.net | Date: | Thu, 17 Dec 2020 22:31:27 +0000 |
| Subject: | Bug->Req #80530 [Nab->Opn]: Make phpinfo not output complete webpages | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-231141@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=80530&edit=1
ID: 80530
Updated by: requinix@php.net
Reported by: admin at dpwco dot com
-Summary: Inserting unwanted HTML tags
+Summary: Make phpinfo not output complete webpages
-Status: Not a bug
+Status: Open
-Type: Bug
+Type: Feature/Change Request
Package: Unknown/Other Function
Operating System: linux
PHP Version: 7.4.13
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2020-12-17 22:29:57] admin at dpwco dot com
In the past, on previous servers, my markup seemed to override phpinfo function markup -
have just migrated to new server environment, and it no longer works as in the past.
When phpinfo function is embedded in a larger user generated script, it shouldn't be inserting
/body & /html tags at end of its processing,
common sense dictates in these situations, there is more user code to follow.
phpinfo function should just wrap its output in a <div></div> wrapper and let the user
build their respective page around it.
------------------------------------------------------------------------
[2020-12-17 21:52:57] requinix@php.net
phpinfo() outputs a complete webpage. Even includes a doctype.
But go ahead and add your own markup if you want. It shouldn't matter. Browsers will find a way
to handle it.
------------------------------------------------------------------------
[2020-12-17 21:48:28] admin at dpwco dot com
Description:
------------
---
From manual page: https://php.net/function.phpinfo
---
Actually using PHP 7.4.11
Calling phpinfo function results in function apparently inserting its own /BODY & /HTML tags at
function processing end.
These tags show up in "view source" of a served web page, see:
https://www.jokesbag.com/connectiontest.php
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=80530&edit=1