PHP 4.0 Bug #6661 Updated: XML declaration tries to be parsed

From: Date: Tue, 12 Sep 2000 02:09:01 +0000
Subject: PHP 4.0 Bug #6661 Updated: XML declaration tries to be parsed
Groups: php.dev 
Request: Send a blank email to php-dev+get-32915@lists.php.net to get a copy of this message
ID: 6661 User Update by: chris@billingsgazette.com Old-Status: Open Status: Closed Bug Type: XML related Description: XML declaration tries to be parsed was informed that this is not a bug. : ) Previous Comments: --------------------------------------------------------------------------- [2000-09-11 21:44:33] chris@billingsgazette.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> ------------- --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=6661

« previous php.dev (#32915) next »