#46159 [Com]: DOMDocument::loadHTMLFile() fails with some inputs.

From: Date: Tue, 23 Sep 2008 11:54:49 +0000
Subject: #46159 [Com]: DOMDocument::loadHTMLFile() fails with some inputs.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-129206@lists.php.net to get a copy of this message
ID: 46159 Comment by: alexander dot v at zend dot com Reported By: alexander dot v at zend dot com Status: Open Bug Type: DOM XML related Operating System: Linux PHP Version: 5.2.6 New Comment: HTML example can be taken here: documentation/manual/core/ru/zend.db.select.html file of ZF 1.6.1 package (http://framework.zend.com/releases/ZendFramework-1.6.1/ZendFramework-1.6.1.tar.gz) Previous Comments: ------------------------------------------------------------------------ [2008-09-23 11:33:26] alexander dot v at zend dot com Description: ------------ DOMDocument::loadHTMLFile() generates warnings with some input files. E.g. ---------------------------------- Warning: DOMDocument::loadHTMLFile(): Input is not proper UTF-8, indicate encoding ! in /home/cawa/...../zend.db.select.html, line: 232 in /home/cawa/..../test.php on line 4 ---------- File is actualy correct and is loaded correctly by the following code: ------------------ $htmlData = file_get_contents($fname); DOMDocument::loadHTML($htmlData); ---------- Reproduce code: --------------- DOMDocument::loadHTMLFile($fname); Expected result: ---------------- File is loaded without warning message. Actual result: -------------- File is loaded with warning message. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46159&edit=1

« previous php.bugs (#129206) next »