PHP 4.0 Bug #6661: XML declaration tries to be parsed
| From: | chris at billingsgazette dot com | Date: | Tue, 12 Sep 2000 01:44:33 +0000 |
| Subject: | PHP 4.0 Bug #6661: XML declaration tries to be parsed | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-32909@lists.php.net to get a copy of this message | ||
From: chris@billingsgazette.com
Operating system: SuSE Linux 6.4 (2.2.14)
PHP version: 4.0.2
PHP Bug Type: XML related
Bug description: XML declaration tries to be parsed
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>
-------------