Page MenuHomePhabricator

D21497.id51163.diff
No OneTemporary

D21497.id51163.diff

diff --git a/support/init/init-script.php b/support/init/init-script.php
--- a/support/init/init-script.php
+++ b/support/init/init-script.php
@@ -94,7 +94,8 @@
)));
// Disable the insanely dangerous XML entity loader by default.
- if (function_exists('libxml_disable_entity_loader')) {
+ // PHP 8 deprecates this function and disables this by default.
+ if (function_exists('libxml_disable_entity_loader') && \PHP_VERSION_ID < 80000) {
libxml_disable_entity_loader(true);
}

File Metadata

Mime Type
text/plain
Expires
Mon, Apr 21, 9:03 AM (4 d, 15 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7801773
Default Alt Text
D21497.id51163.diff (497 B)

Event Timeline