ezyang / htmlpurifier

Standards compliant HTML filter written in PHP
http://htmlpurifier.org
GNU Lesser General Public License v2.1
3.07k stars 327 forks source link

Version 4.10.0 is broken on HHVM #169

Closed xemlock closed 6 years ago

xemlock commented 6 years ago

Vesion 4.10.0 is broken on hhvm (4.9.3 was the last version working).

The following snippet:

$config = HTMLPurifier_Config::createDefault();
$purifier = new HTMLPurifier($config);

echo $purifier->purify('<p>Foo</p>');

when executed with hhvm echoes an empty string instead of <p>Foo</p>. When executed with php the output is as expected.

Tested on hhvm 3.24.2 and 3.21.7.

Update: After some investigation it turned out it's caused by #155.