Jeff-Lewis / phpquery

Automatically exported from code.google.com/p/phpquery
0 stars 0 forks source link

Notice: Undefined variable: hltml in phpQuery/phpQuery/DOMDocumentWrapper.php on line 389 #147

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

I am parsing a block of raw html including headers (such as what is
returned as the response when using CURL); I'm not 100% certain if this is
what is causing the error but it looks like it may.

What is the expected output? What do you see instead?
  error free stacktrace

What version of the product are you using? On what operating system?
  0.9.5 WinXP

Please provide any additional information below.

I think it is just a typo. I changed it to $html in my local copy & the
notice went away.

Original issue reported on code.google.com by geoffrey...@gmail.com on 30 Apr 2010 at 9:42

GoogleCodeExporter commented 9 years ago
I've confirmed this problem. It's due to a typo in the DOMDocumentWrapper.php 
which you can see here :

http://code.google.com/p/phpquery/source/browse/trunk/phpQuery/phpQuery/DOMDocum
entWrapper.php#389

I'm attaching a patch which fixes the typo

Original comment by gene.wood.temp on 19 Oct 2010 at 6:24

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
This is a duplicate of Issue 141

Original comment by gene.wood.temp on 19 Oct 2010 at 6:34

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
<!DOCTYPE html>
<html>
<head></head>
<body>
...
</body>
</html>

is OK but ...

<!DOCTYPE html>
<html>
<!-- no HEAD here !!! -->
<body>
...
</body>
</html>

Original comment by elreydel...@gmail.com on 4 Jun 2013 at 2:28