|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #50706 phpinfo() generates invalid XHTML code
Submitted: 2010-01-09 09:57 UTC Modified: 2010-01-09 18:36 UTC
From: miklcct at gmail dot com Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 5.3.1 OS: Ubuntu 9.10
Private report: No CVE-ID: None
 [2010-01-09 09:57 UTC] miklcct at gmail dot com
Simply running phpinfo() and put the output into W3C validator and it says:

Validation Output:  1 Error

   1. Error Line 2, Column 1: Missing xmlns attribute for element html. The value should be:



      Many Document Types based on XML need a mandatory xmlns="" on the root element. For example, the root element for XHTML will look like:
      <html xmlns="" xml:lang="en" lang="en">

Reproduce code:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-01-09 18:36 UTC]
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

See bug #50324
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Fri Jan 28 06:03:41 2022 UTC