#46159 [Opn->Fbk]: DOMDocument::loadHTMLFile() fails with some inputs.
| From: | johannes@php.net | Date: | Tue, 23 Sep 2008 12:01:02 +0000 |
| Subject: | #46159 [Opn->Fbk]: DOMDocument::loadHTMLFile() fails with some inputs. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-129208@lists.php.net to get a copy of this message | ||
ID: 46159
Updated by: johannes@php.net
Reported By: alexander dot v at zend dot com
-Status: Open
+Status: Feedback
Bug Type: DOM XML related
Operating System: Linux
PHP Version: 5.2.6
New Comment:
There's no such file in that tarball, please provide the file.
Previous Comments:
------------------------------------------------------------------------
[2008-09-23 11:54:48] alexander dot v at zend dot com
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)
------------------------------------------------------------------------
[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