0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2024-12-22 16:31:53 +00:00

Merge pull request #130 from Izumi-kun/lexer-create-fix

Autoloading must be skipped while checking for php builtin class.
This commit is contained in:
Edward Z. Yang 2017-03-21 17:50:26 -07:00 committed by GitHub
commit 65d5cdee50

View File

@ -96,7 +96,7 @@ class HTMLPurifier_Lexer
break; break;
} }
if (class_exists('DOMDocument') && if (class_exists('DOMDocument', false) &&
method_exists('DOMDocument', 'loadHTML') && method_exists('DOMDocument', 'loadHTML') &&
!extension_loaded('domxml') !extension_loaded('domxml')
) { ) {