josh-techindeed / phpquery

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

empty(), _empty(), and html('') cause a 500 error #173

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm not sure if it's my PHP version, configuration, or what, but this error 
only seems to happen on my dedicated server, not locally. It took me a few 
hours to realize empty() was causing the issue. I tried the alias _empty() as 
well as html(''), but they have the same results. I've resorted to 
children()->remove() for now, but I would like to know what might be causing 
this issue and if there's a way to fix it.

Original issue reported on code.google.com by kingers...@gmail.com on 13 Feb 2011 at 11:18

GoogleCodeExporter commented 9 years ago
Seems to be a DOMNode issue - even `$target->get(0)->nodeValue = ''` causes the 
error.

Original comment by kingers...@gmail.com on 13 Feb 2011 at 11:24