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

From: Date: Tue, 23 Sep 2008 11:33:26 +0000
Subject: #46159 [NEW]: DOMDocument::loadHTMLFile() fails with some inputs.
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-129204@lists.php.net to get a copy of this message
From: alexander dot v at zend dot com Operating system: Linux PHP version: 5.2.6 PHP Bug Type: DOM XML related Bug description: DOMDocument::loadHTMLFile() fails with some inputs. 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 bug report at http://bugs.php.net/?id=46159&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46159&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46159&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46159&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=46159&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=46159&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=46159&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=46159&r=needscript Try newer version: http://bugs.php.net/fix.php?id=46159&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=46159&r=support Expected behavior: http://bugs.php.net/fix.php?id=46159&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=46159&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=46159&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=46159&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46159&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=46159&r=dst IIS Stability: http://bugs.php.net/fix.php?id=46159&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=46159&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=46159&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=46159&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=46159&r=mysqlcfg

« previous php.bugs (#129204) next »