|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-03-26 19:57 UTC] rrichards@php.net
[2008-04-03 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 00:00:01 2025 UTC |
Description: ------------ I built a script which I pull the html down from a url and then do some editing and output the source with ->saveHTML(); I noticed every now and again the code outputted was missing characters in misc spots. For example one of my <div> became a <di>. I noticed this through a diff. I wanted to eliminate it being on my end of the code so I simply pulled out all the code and left just $doc->loadHTMLFile($url); and then simply output with $doc->saveHTML(); If do this and hit refresh, it would during random refreshes lose the character (every 10/15 refreshes). It was always characters in the same place in my code, but random when they would disappear. Reproduce code: --------------- $conn = $doc->loadHTMLFile('http://www.chrishan.org'); if($conn){ echo "<textarea rows=40>"; echo $doc->saveHTML(); echo "</textarea>"; } Expected result: ---------------- I expect it to output my sourcecode from my website. But every 10 to 15 refreshes it loses a couple misc characters from my source.