Red Hat Bugzilla – Bug 63927
php must be reconfigured to work with xhtml
Last modified: 2007-03-26 23:52:59 EDT
Description of Problem:
A well formed xhtml page generated with php results in a parse error.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Make a well formed xhtml php page (say index.php) beginning with:
<?xml version="1.0" encoding="UTF-8"?>
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
Try to retreive the page
Note the <?xml... causes a parse error.
Turning off short_open_tags in /etc/php.ini fixes the problem.
This should be the default so people can use the new w3 standards
"out of the box." Current users of short tags are going to have
to deal with the problem when they migrate to xhtml, the rest of
us shouldn't have to suffer, and new users should be discouraged
from using short tags.
This will have to be an errata item
Now if only you'd been 10 days earlier,...
Has been fixed for errata