Bug 63927

Summary: php must be reconfigured to work with xhtml
Product: [Retired] Red Hat Linux Reporter: Karl O. Pinc <kop>
Component: phpAssignee: Phil Copeland <copeland>
Status: CLOSED ERRATA QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: low    
Version: 7.2   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://bugs.php.net/bug.php?id=4288&edit=1
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-04-22 05:01:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Karl O. Pinc 2002-04-22 04:56:45 UTC
Description of Problem:

A well formed xhtml page generated with php results in a parse error.


Version-Release number of selected component (if applicable):
php-4.0.6-15


How Reproducible:
always

Steps to Reproduce:
1. 
Make a well formed xhtml php page (say index.php) beginning with:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "DTD/xhtml1-strict.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>

2. 

Try to retreive the page
3. 

Note the <?xml... causes a parse error.


Additional Information:

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.

Comment 1 Phil Copeland 2002-04-22 05:01:12 UTC
Bad news,..
too late.

This will have to be an errata item

Now if only you'd been 10 days earlier,...

Phil
=--=

Comment 2 Phil Copeland 2002-06-04 18:56:55 UTC
Has been fixed for errata

Closing

Phil
=--=