PHP 4.0 Bug #7052: CDATA causes auto generate wrong HTML header

From: Date: Fri, 06 Oct 2000 06:14:32 +0000
Subject: PHP 4.0 Bug #7052: CDATA causes auto generate wrong HTML header
Groups: php.dev 
Request: Send a blank email to php-dev+get-34330@lists.php.net to get a copy of this message
From: kenny@yellowzone.com Operating system: Linux RedHat 6.2 PHP version: 4.0.2 PHP Bug Type: DOM XML related Bug description: CDATA causes auto generate wrong HTML header I used xmltree () function to parse a XML code like the following: ------------------------------- <dmt_body> <![CDATA[ fool < alio@yello.net > kinda missing. ]]> </dmt_body> -------------------------------- It will create following header and send to the web browser by itself. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> Since this is not a valid header, IE will not display any content after that. Does any one know what's wrong and how to fix it?

« previous php.dev (#34330) next »