What steps will reproduce the problem?
1. $html = @file_get_contents('http://schlosshotel-althoernitz.de/');
2. $pq = phpQuery::newDocument($html);
3. Or load any other XML-Page, that has errors
What is the expected output? What do you see instead?
It is expected that phpQuery parses the XML-Page although the page has
errors. Instead it crashes with:
Fatal error: Uncaught exception 'Exception' with message 'Error loading XML
markup' in phpQuery-onefile.inc.php:424 Stack trace: #0
phpQuery-onefile.inc.php(237): DOMDocumentWrapper->loadMarkupXML('<?xml
version="...') #1 phpQuery-onefile.inc.php(191):
DOMDocumentWrapper->loadMarkup('<?xml version="...') #2
phpQuery-onefile.inc.php(177): DOMDocumentWrapper->load('<?xml
version="...', NULL, NULL) #3 phpQuery-onefile.inc.php(4857):
DOMDocumentWrapper->__construct('<?xml version="...', NULL, NULL) #4
phpQuery-onefile.inc.php(4631): phpQuery::createDocumentWrapper('<?xml
version="...', NULL) #5 index.php(80): phpQuery::newDocument('<?xml
version="...') #6 index.php(43): checkSite('schlosshotel-al...') #7 {main}
thrown in phpQuery-onefile.inc.php on line 424
What version of the product are you using? On what operating system?
phpQuery 0.9.5.386 single file version
Apache 2.2 with PHP 5.2 on Debian Lenny
Please provide any additional information below.
The current version of the faulty XML-page is attached for testing.
Original issue reported on code.google.com by laurens....@gmail.com on 4 Jun 2009 at 5:08
Original issue reported on code.google.com by
laurens....@gmail.com
on 4 Jun 2009 at 5:08Attachments: