Page MenuHomePhabricator

D21497.diff
No OneTemporary

D21497.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,8 +94,11 @@
)));
// Disable the insanely dangerous XML entity loader by default.
+ // PHP 8 deprecates this function and disables this by default; remove once
+ // PHP 7 is no longer supported or a future version has removed the function
+ // entirely.
if (function_exists('libxml_disable_entity_loader')) {
- libxml_disable_entity_loader(true);
+ @libxml_disable_entity_loader(true);
}
$root = dirname(dirname(dirname(__FILE__)));

File Metadata

Mime Type
text/plain
Expires
Mon, May 13, 11:39 PM (2 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6294041
Default Alt Text
D21497.diff (611 B)

Event Timeline