php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6661 XML declaration tries to be parsed
Submitted: 2000-09-11 21:44 UTC Modified: 2000-09-11 22:09 UTC
From: chris at billingsgazette dot com Assigned:
Status: Closed Package: XML related
PHP Version: 4.0.2 OS: SuSE Linux 6.4 (2.2.14)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: chris at billingsgazette dot com
New email:
PHP Version: OS:

 

 [2000-09-11 21:44 UTC] chris at billingsgazette dot com
Theoretically, the following code *should* work without any errors.  However, PHP tries to parse the XML declaration statement, and returns the following error "Parse error: parse error in /www/bugtest.php on line 5"
-------------
<?php
$title = "Test for PHP bug displaying XHTML";
?>

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html>
 <head>
  <title><?php echo $title ?></title>
 </head>
 <body>
  <p>This is an XHTML document.  Oh yeah, hello world!</p>
 </body>
</html>
-------------

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-09-11 22:09 UTC] chris at billingsgazette dot com
was informed that this is not a bug.  : )
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Nov 28 15:03:14 2021 UTC