facebook/hiphop-php — Issue #471: HipHop Fatal error: Bad type conversion: DOMDocument::__toString() was not defined.
Author: Eseph
Created: 2012-01-18 15:40:09+00:00
State: open

the following fails while running the compiled php code:

$dom = new DOMDocument();
$result = $dom->loadHTML($return_html);

runtime error message (in $result):

result: HipHop Fatal error: Bad type conversion: DOMDocument::__toString() was not defined. in runner.php on line 515

What can I do ?
the cpp code looks like:

{
LINE(515,0);
const Variant &tmp0((v_dom->t_loadhtml(toString(v_return_html))));
v_result.assignVal(tmp0);
}
if (!same(v_result, true)) {
{
print(NAMSTR(s_ss8abb5186, "error !!!"));
{
print(NAMSTR(s_ss5e9854d4, "result: "));
print(toString(v_result));
print(NAMSTR(s_ss66d2232c, "\n"));
;
}
return -1LL;
}
}