wolferhua / phpquery

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

Undefined variable error (misspelled variable) #156

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Turn on PHP errors (or catch them, as I do); set to level E_ALL
2. Include phpQuery in code.
3. Call phpQuery::newDocumentHTML();

What is the expected output? What do you see instead?
No idea, I'm starting to use phpQuery ;).

Please use labels and text to provide additional information.

This is the current code:

516     if (strpos($html, '<head') === false) {
517         if (strpos($hltml, '<html') === false) {

I'm deducing line 517 contains a misspelled variable; "$hltml" should be 
"$html".

Line 517 in phpQuery-onefile.php version 0.9.5.

Cheers,
Christian Sciberras,
Systems Software Developer,
Keen Advertising Ltd.

Original issue reported on code.google.com by uuf6...@gmail.com on 14 Sep 2010 at 1:48

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:35

GoogleCodeExporter commented 9 years ago
And......still not fixed?!

Original comment by uuf6...@gmail.com on 24 Oct 2010 at 6:49

GoogleCodeExporter commented 9 years ago
Fixed a year ago in dev branch, not released.
http://code.google.com/p/phpquery/source/detail?spec=svn393&r=392

Original comment by tobiasz....@gmail.com on 25 Oct 2010 at 6:35