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

From: Date: Fri, 06 Oct 2000 06:20:47 +0000
Subject: PHP 4.0 Bug #7052 Updated: CDATA causes auto generate wrong HTML header
Groups: php.dev 
Request: Send a blank email to php-dev+get-34331@lists.php.net to get a copy of this message
ID: 7052 User Update by: kenny@yellowzone.com Status: Open Bug Type: DOM XML related Description: CDATA causes auto generate wrong HTML header I used xmltree () function to parse a XML code like the following: ------------------------------- <dmt_body> <![CDATA[ whatever things. ]]> </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? I used Apache 1.3.12 and libxml2-2.2.4 Previous Comments: --------------------------------------------------------------------------- [2000-10-06 02:14:32] kenny@yellowzone.com 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? --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=7052

« previous php.dev (#34331) next »