Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15380530
D21497.id51167.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
611 B
Referenced Files
None
Subscribers
None
D21497.id51167.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 15, 3:29 AM (3 d, 17 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7682003
Default Alt Text
D21497.id51167.diff (611 B)
Attached To
Mode
D21497: Suppress PHP 8 deprecation warning in __arcanist_init_script__
Attached
Detach File
Event Timeline
Log In to Comment