Bug #4178: <?xml needed in XHTML

From: Date: Tue, 18 Apr 2000 13:36:01 +0000
Subject: Bug #4178: <?xml needed in XHTML
Groups: php.dev 
Request: Send a blank email to php-dev+get-18011@lists.php.net to get a copy of this message
From: sven@pressflex.com Operating system: Linux 2.2.13 PHP version: 3.0.14 PHP Bug Type: Other Bug description: &lt;?xml needed in XHTML W3C's XHTML suggests the first line of your document look something like: <?xml version="1.0" encoding="UTF-8"?> But in PHP is tries to read that as PHP code. The work around is to use PHP to print the header, but it would be much better to not to have to. I would like the solution to be that <? doesn't break from HTML, only <?php but that will probably break a lot of old code. But I would be very happy if <?xml didn't break away to HTML, and then please make <? w/o the PHP deprecated. See: http://www.w3.org/TR/1998/REC-xml-19980210#NT-PI for the exact spec of what is needed.

« previous php.dev (#18011) next »